Changed to ThreadSingleton
Added new Singleton classes that depend on keys, specifically thread id or thread id and db name.
Added sub commands that are handled badly.
Implemented thread scheduler. Currently only has an update games thread.