REACH-76 settings.url is not defined in start.html in node-webkit

Now settings.js is shared between front-end and nodejs applications,
Socket url used for both nodejs and requirejs is stored in Settings.js;
Also contains some minor refactoring of issues, like commas,
unused code, etc.
I hope you don't mind that I added this, it makes debugging node-webkit far easier.  We'll remove it later.