Restructure Angular app into CommonJS modules

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Bundle CommonJS modules with Webpack

Minimal work necessary to make Sprockets and existing Karma tests work
with Webpack.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Fix stray global in Karma tests

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Merge branch 'dev' into feature/16494-protractor-tests

Signed-off-by: Alex Coles <alex@alexbcoles.com>

Conflicts:
	app/assets/javascripts/angular/work_packages/view_models/common-relations-handler.js
add release/4.0 branch to .travis.yml
Test error message for multiple validation errors
Rename method refactoring
Cache WP attribute extraction
Extract parent modification authorization
Put parent validation into WP's API V3 model
Fix activity validation error spec
Merge branch 'feature/16770_rework_validation' into feature/16770_work_package_api_patch_for_subject
Merge pull request #2084 from marutosi/finn/release/4.0/travis

add release/4.0 branch to .travis.yml
Test error message includes punctuation
Add punctuation to error messages
Test availibility of WP's lock version
Add lock version to API V3's WP response
Correct typo
Recover watch icon style
Revert "we should force ssl  in the app and don’t rely on the webserver’s redirect rules."

This reverts commit b36c1d089eb05679bddd740eca991912421494e4.