Refactoring code to remove business logic from controllers. Initial creation of services for logic and directives for DOM manipulation