Move code from cache/__init__.py into a properly-named file.

In preparation for move to pantsbuild.