Update the structure of javaScript files

Update the structure of JavaScript files to separate third party
vendor libraries from the actual application libraries.

Update require.js configuration
Merge branch 'master' into gh-pages
Released version with new folder structure for javascript files.