only open socket.io when running on heroku

- this allows us to do local testing of the
  angular site without having 2 different node
  instances writing the messages into firebase
use local storage for credentials like the main site