Add smooth migration for session (de)serialization
Merge pull request #581 from stloyd/bugfix/issue_517

[0.3] Add smooth migration for session (de)serialization