lua: add uci.add_history to the api