replaced ControlObjectThread with ControlObjectSlave
deleted m_pSampleRate in enginebuffer
delete m_pContext in legacyskinparser
some code cleanup
used a Shared pointer to control the lifetime of the singleton BrowseThread
delete m_pScriptEngine and m_pScriptDebugger