Improve and refactor cache. Refs #655
Fix minor issue with Cache
Add new tests for cache generation keys. Closes #655
Merge pull request #656 from PyBossa/issue-655-cache-issue

Issue 655 cache issue