Merge pull request #74 from lazd/master

Convert the cookie object to its JSON representation before storing
Updated version.
Change default _serialize_session to copy properties and handle toJSON for cookie, change tests to use uniform session data and validation. Fixes #76