Implemented Singleton for LuaManager.
Fix for context not resized when a dialog had focus.

This made a bar where the navigation bar was previously
in some cases and was unsightly.