Merge pull request #2002 from ChaoPang/feature/ontology

Feature/ontology
Let MysqlRepositoryCollection create the metadata repositories.
Make MetaDataService independent of Mysql.
Better delete order for self-referencing entities.
Make sure the metadata repositories get indexed WIP
Merge pull request #2005 from fdlk/master

Make metadata code independent of mysql. Make sure metadata repositories get properly decorated.
Merge pull request #2003 from ChaoPang/feature/ontology

Feature/ontology
Remove interface RepositoryCreator, use existing interface ManageableCrudRepositoryCollection.
Let MysqlRepositoryCollection implement ManageableCrudRepositoryCollection.
Rename store to targetCollection in the EmxImportService to reflect both type and role of the field.
Merge pull request #2006 from fdlk/feature/meta

RepositoryCreator -> ManageableCrudRepositoryCollection
refactor ScriptRunnerFactory to work with
ManageableCrudRepositoryCollection
Merge pull request #2008 from jjettenn/feature/meta

refactor ScriptRunnerFactory to work with ManageableCrudRepositoryCollection
use entityMetaData instead of entity name
add entities and no strings.
set the entity of the entityMetaData in de attributeMetaData map entity
set the entity of the package in de entityMetaData map entity
Merge pull request #2009 from jjettenn/feature/meta

add entities and no strings.
W.I.P trying to fix EmxImportServiceTest
Don't need to explicitly clean up, refreshRepositories already does that.
Fix NullPointerException for attributes that don't have a refEntity.
Fix NPE when deleting non-existent entity.
Put package-less entities into the default package.
Small changes.