Implement etags and Last-Modified usage.

* Store etag of Last-Modified headers in database if found.
* Provide both etag and If-Modified-Since header based on above in requests.
* Check for 304 and skip processing if found.