Added and fixed context thread. Fixed flag handling.
Merge branch 'master' of github.com:Oblify/Server