[REVIEW] fixes related to NEXUS-5750

Properly organize for requireJS as js is being loaded multiple times presently.

These problems didn't exhibit in debug mode but js files were being loaded twice and leading to duplication of UI components. This should wire up requirejs dependencies properly and prevent multiple reloading of modules.

Similar changes will need to be made on https://github.com/sonatype/nexus-pro/pull/7 before that can be merged.


https://issues.sonatype.org/browse/NEXUS-5750