Adding resource_name + refactoring serialize (rel 942222)

The resource_name is added in order to be able to map zippy's
resource_uri to solitude's ones.