prepared for heroku
added socket.io configuration for heroku
fixed socket.io configuration
Bugfix: client instead of socket
addec volatile message type
changed 'error' event to 'err' because 'error' is reserved to socket.io
heroku-specific configuration, detection with enviornment variable