Refactored the controllers, and added a method in emotions controller to
calculate the average of the emotions for a given day.