Add module documentation and reorder/restyle the Redis code a bit.

See also #446.