add code for server sent events
modify a little about websocket
Merge pull request #50 from iamroody/master

update for html communication