Remove unnecessary second import of ui module
Fully implement requirejs compilation (but not minimization), including namespacing.  Fix #425, and should fix #409