Refactoring for reducing complexity of serialization process. Added REST service for exposing domain type configuration metadata (/{repository}/metadata)