getNewIdAsInteger(Class, Integer) implemented.
Avoids now double registration of plugins.
Migrates now also user id's and group id's for xml export/import.