Correctly handle partial json objects.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Implement some protocol stuff.

Sadly Firefox 19.0.2 doesn't seem to support styleEditorActor.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>