WIP split cache classes onto a separate module.
Clean up imports
reapply pop_fix lost when rebasing
update gitignores
Fix the sync loop
Merge pull request #199 from whirm/cache_split

Cache split