Refactored dependency resolver into directive, simplified installed controller.