Added serialization/deserialization to/from JSON and XML (timesieve)