Support Rails 4.1 JSON encoding of sessions.

Continue to support marshalled sessions.
Merge pull request #48 from alphagov/rails-4-1-session-support

Support Rails 4.1 JSON encoding of sessions.