DATAREST-99 - Updated RepositoryController to use new mapping API.

RepositoryController now uses the new mapping API to not expose non-public repositories anymore. Added integration test for that in the JPA module.