Controller/AnalyticsController: refactoring responses in actions.
Refactoring routes.