refactor

Implementing google wave protocol nearly done, couple of things need to
be double checked (counting client and server messages, etc.)