switch from bson to json for session dumps
Merge branch 'master' into readthedocs