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.
Just check what kind of AMD we're using and provide appropriate module export function