Refactor QWebChannel to use a custom WebSocket server implementation.


The code is much simpler in my opinion and much faster and far more
stable. Especially the timer issues or multiple signal connects
are now properly resolved.

Also simplify the QML WebChannel API:

- Rename slot to sendRawMessage and signal to rawMessageReceived
- Add a QML helper that has a respond and sendMessage method that
  transforms the input to the expected JSON format.

Change-Id: Ic3266329d1a2877bd46227e4ad70b88dc340d289
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
commitb2eeff74bc4e0e003bc01bf108c9d90dd6794606
parente42d338fde6a40b3672950530f3712cf6cb631a7
authorMilian Wolff <milian.wolff@kdab.com>
committerPierre Rossi <pierre.rossi@gmail.com>
commit timeFri, 1 Nov 2013 13:57:48 +0100