refactor comment handling into functions
refactor comment fetching into a separate function
pull body fetching out into a function
refactor message sending endpoint to use helpers, checking that a message was passed in; also allow an id= parameter to be specified when GETing /comment
remove traces of second app
Cleanups:
- make pings get answered by a pong
- stop sending pings on an interval
- add display of pongs and messages in the client
- add a subject to messages
- tidy up Notification permissions
- make Notifications work in Chrome and Firefox
- autoconnect on page load
- try to reconnect if the connection dies
- send a welcome message when clients connect
rename push.html to index.html
make auto-reconnect work

you can still sometimes get into a state where two intervals are firing simultaneously, but they will stop once one manages to connect