Add ability to generate concatenated and minified build with the RequireJS optimizer and NodeJS.

Remove Rhino - kept giving stack overflow errors when optimizing.