Moved to CommonJS and using browserify to distribe a bundle AMD ready. Added a Gruntfile.