Move redis.rs into lib.rs
Adapt to the ioerror changes.