Add support to the new modules system to idmap. This is required to be able to put ldap support into modules
Just committed this to 3.0 and HEAD, based on a patch from metze.
originally reported against 3.0alpha23. Bugzilla spring cleaning.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.