Config for domains
When running on a machine other than a localhost the client fails when trying to connect to the server as it is looking for a localhost address.
The following from the browser inspector output:
GET http://localhost:3001/sockjs-node/info?t=1450757993619 net::ERR_CONNECTION_REFUSED
AbstractXHRObject._start @ abstract-xhr.js:128
(anonymous function) @ abstract-xhr.js:21
abstract-xhr.js:128
XHR failed loading: GET "http://localhost:3001/sockjs-node/info?t=1450757993619".
AbstractXHRObject._start @ abstract-xhr.js:128
(anonymous function) @ abstract-xhr.js:21
We need to create a config and store deployment variables etc in it (plus remove hardcoded 'localhost' placeholders etc).