got rid of luamain dependency i macros
Pass Luastate into Lua callback.
put this back to the way it was