libtorc-core: Use Torc version of QScriptEngine::newQMetaObject

- the equivalent code is not available in Qt5 (QJSEngine) and
QScriptEngine is deprecated, no longer maintained and QJSEngine should
be faster.
libtorc-baseui: Update ScriptDebug function for Qt5

- QScriptEngine::addFunction has no equivalent in QJSEngine