More Lua helper functions to a separate class.

Now LuaContext is only used for the Lua state of the Solarus API.
Data files that are parsed as Lua don't use LuaContext.