Cleaning up build process.

 - Use grunt's requirejs.
 - Removed shell scripts from build process.
 - License info appears at top of unoptimized JS file now.

(cherry picked from commit 8cfa0fc9fc8ae70c2ce477f3c9477cec86fe3d42)
Merge branch 'clean-up-build-process-from-bugfix' into 1.4-develop