Initialize/cleanup Lua from the constructor and destructor of MainLoop.

Lua must be initialized before showing the window, because if
the script changes the window size at startup, we don't want to see the
previous window during a short time.