Put plugins in their own files.
Use tomb.v2.
Add ldap plugin and a convenient wrapper.