Moved message API calls to LUAAPI
Added LUA API codes to file for easy lookup