initial httpcache interface

WIP of an http caching system.