Require User-Agent header for APIv2 requests & writeout cache-control

* User-Agent header is now required for all APIv2 requests.
* Give the option to writeout cache-control header to support GAE edge caching.