Allowing the browser version of noder to be executed outside of a browser.

It will no longer fail if window or document is not defined.
Passing the full module to loadUnpackaged instead of only the module name in loader.js
Creating the root module before the loader and resolver.
Scripts are now executed after the main module and the onstart method.