Extract adapter/mapper config to separate files

We also automate the configuration of entities and repositories by:

* assigning the attributes from the mapper to the entities (excluding
  the identity attribute)
* assigning the adapter to the repositories matching the name of the
  entities in the mapper

Technically, a mapper could be used by two adapters at the same time. In
this case the last adapter to be initialized would be assigned to all
the repositories.