Jasmine node support

I've merged master into jasmine-node-support and have fixed the conflicts (main.js) and have tested that all samples pass using my branch. I'd like to have these changes pulled into master.