Update main.js
don't assume `app` or `server` is an express object

requires options be explicitly set on the parameter
update colors
version bump to 0.3.1
unlink previous socket on startup
remove console.logz