Added very basic WebSocket support to json server

QByteArray has append(const char*, int len) method which allows direct appending instead of using a temporary QByteArray.