TMPDIR does not exist on linux
Remove title="" from input field
Better at detecting when ws.send() fail

  - Log when readyState change
  - Create ReconnectingWebSocket with an object instead of just url
  - Add event logging
  - Fix getNewMessages() on reconnect