added json serialization method
added cookie serializer with support for json and pickle (default)