Refactoring almost all of the code into a new API layer to shared between hourly and web.

Added unit tests.
Moved utility functions to separate go files.
Now can batch YQL queries from YQL.