Initial work on node-webkit version
Sandbox stuff and other tweaks
More refactoring to work toward node-webkit support.
Merge remote-tracking branch 'origin/master' into standalone