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

Found it! It does already exist of course and is called ManageableCrudRepositoryCollection.