Refactor cache code into a module, add memcached store
noop for onConnect and onError
Docs for configuration
Add papertrail:hostname
Add more events for memcached onError
Add simple debug mode
Fix the boolean and int values
Add back the boolean check
Remove redundant code