changed RegisterWithLua.cpp

tried a new way of exposing the App-singleton to Lua, this time as a global variable. The App will now be constructed before the Lua chunk is executed.