Add callback to db.redis

Changes ``db.redis`` to accept a callback so that client code doesn't have to manually set a handler for the redis client.