Rack middleware to regenerate the session cookie when it was written with the old secret

Rather than monkey patching Rails internals like this: https://gist.github.com/stevehodgkiss/5ee4db3a76f8a4d3ff23