added redis support

https://github.com/whyi/gallery/issues/52