Update packages for fresh installs

Was getting different errors with outdated
packages specially karma related when running
npm install. Updated swag to fix bower install
error.
Do not try to connect to sockets if no SOCKETS_URL

Websockets should be an optional enhancement.
If SOCKETS_URL is not setup do not try to connect.