Refactored Angular controller injections.

Refactored the controllers code to inject only used dependencies and to make use of $controller service to make controller inheritance.