changed library name
delete libraries as well if history deletion is enabled
fixes for #783
fixed scalability issue
bug fixes
enrollments importer handles multiple studies
added new enum, see #825 for details