A few hanges here and there. Angular's $http is used to set polls and
votes to the home page.
Defined a simply Angular controller for GET. In addition, the API
performs SQL queries only when needed.
Optimized queries for all GET views.