Refactored and improved AngularJS module organization.