More work on Lua API, travis fixes