improve use of redis and postgres and cache

- create simple wrapper (Kv) to redis functionality
- create cache functionality using redis via Kv
- refactoring and cleanup
Merge branch 'master' of github.com:vicgarcia/slimproject