(First pass) thread-safe refactor, TinQTConsole added

A quick and dirty console, requiring a QT5.0.1 installation.
All statics/singletons are now contained within a CScriptContext, which
can be instantiated per thread...
Still work to do, to ensure the "correct" thread finds and executes a
registered function.