Add BaseAuthenticatedHandler and move authentication logic there.
Add api_key field to queries.
Allow downloading CSV by query id and not just query_result id.
Allow downloading CSV for unauthenticated users with api_key.
Merge pull request #48 from EverythingMe/feature_query_api_key

Feature: allow downloading CSV of a query by using an API key