Fixed incorrect key generation for memcache.

Added caching for search results.
Fixed old imports to this project.