ws changes, server tests

* change subscribe scheme, now using object request and raw websocket (send method, message event)
* add server tests (solve #11 issue)