Added MistOutHTTPTS, also minor cleanup in output.cpp
Compatibility with new C++11 JSON library
Fixed small merge error from last commit.