Metadataservice Implementation

Implementation of the meta data service.

Please review and merge