Passes ldap info to "register, user" plugin hook. User also gets now correctly passed.
Added permissions check override that allows user to be deleted if registration fails.
Fixes (apparently) some invalid whitespace.
Set user validation status before triggerin 'register, user' hook since other plugins like uservalidationbyemail might disable the user.
Catch exceptions thrown by register_user().
Passes LDAP host to 'register', 'user' plugin hook so plugins know which server was used to authenticate.