add websocket (only publish)
improve javascript
Merge branch 'work' of github.com:yoshik/synapse