separate commonjs / client builds
universal module definition and other refactorings