Support for db number in redis cache with db defaulted to 0

Redis allows multiple dbs with zero based numeric index. Added a option to select db on which to connect.

Dependent on pull request on werkzeug https://github.com/mitsuhiko/werkzeug/pull/257