Work In Progress, Ldap Backend, second try

From the last PR, I remember the following major improvements that were not already done :
- create a class to host the `dialog.js`  functions
- update the documentation
- use ocdialog instead of JQuery dialog

@tanghus , feel free to add more ;)