Changed application Lua API to not use separate __index instance.