Reorganize lib to use requirejs
Move Mixins to Nexus namespace
Fix singleton creation
Fix mixin namespace
Fix UI loading: Add nx-all.js, order lib/nx/UI loading

Because we use requirejs modules that install stuff into global
namespace (... NX.define ...) and use those things *outside of
an r.js module* (... NX.define defines r.js modules ...) we have
to "layer" our js loading:

1. sonatype-lib.js is mandatory, contains require.js and string utils
2. nx-all.js contains the definitions needed to load the actual
   application code (NX.define et.al.)
3. sonatype-all.js contains the UI app, uses NX namespace
Add r.js support for plugins
Introduce builder for r.js contrib
Revert changes to singletons creation
Renaming
Generate syntactically correct javascript
Merge pull request #748 from sonatype/ui-NX-reorg

[NEXUS-5554] Reorganize NX namespace, allow plugins to specify require.js module/dependencies directly
[NEXUS-5434] Update to ExtJS 3.4.1
Move ConfigViewPanel to correct location
Use NX.define for UserEditPanel, move detail views into their own files
NX.define: Sonatype.repoServer.referenceData
NX.define: RepositoryGroupEditor
NX.define: HelpAboutPanel
NX.define: LogView/EditPanel.js
NX.define: GridViewer et.al.
fix r.js dependency