Clone of https://gitorious.org/qtwebsocket