Some midway restructuring.
Deferred and q added
Updated for proper handling on routes.js with promises
Update to route for upvoting
Refactor out the console logs