Let the entities importer and validator make use of the new data api.

Let the entities importer and validator make use of the new data api.
Temporarely move the molgenis-data code to core to prevent circular references