Move RedisSession serialization details to RedisSession.

Note: order of serialized attributes has changed. This change will mean that all currently serialized sessions will be invalid.