tweak directory service module

Sorry for the large pull. I'd vote for allow_migrations to be set to TRUE by default so that when a module changes the changes are adopted by default, unless specified.