Upgrades javascript libs and organization

This updates requirejs, jquery, bootstrap, d3, etc.

Also, javascript libs vs modules are separated, and "main" javascript files are left in web/js/ dir.