Adding texture wrapping for Lua, cleaning up engine->Lua calls.