Install memcache and use it to cache searches

Memcache servers and the cache expiration period can be configured in
the ini file.

Caching can be disabled from the API using nocache=True
Cache subject searches for longer