Implemented object/dictionary serializer

* Serializing of objects to dictionary
* Deserializing of dictionary to objects