Dependency injection pattern implemented ubiquitously. Removed module requires from register.js and user.js.