add api key field

for anything command-line, we'll want an api key field, so add one
initial caching module

implement decorator that caches the results of functions in memcached,
taking into account the parameters the function was called with. also
implement cache dirtying on a per-call basis or for all calls.