Added methods to delete eventgroups properly

Also added some loggin
Merge branch 'refactoring' of https://github.com/PhenotypeFoundation/dbxpBase.git into refactoring

Conflicts:
	grails-app/domain/dbnp/studycapturing/Study.groovy