CMS-2239 Implement XML serializer/deserializer for Module

Implemented serialization/deserialization for Module and written unit tests for it.