Update to new factory.js style
Small fixes
Add more options for specifying options
Fix path for windows
Clean up slopy JSONStream usage.
Merge pull request #353 from nrn/master

Update factory.js