Make metadata code independent of mysql. Make sure metadata repositories get properly decorated.

The MySqlConfiguration is wiring everything up together and needs to call `setRepositoryCollection` on the metaDataService, which is more part of the constructor and hence not in the interface. (I see now that this method ought to be renamed to setRepositoryCreator.)