refs #1054
  Added a timeout using Timeout class from ruby.
  We wait 10 seconds, if the bind to the LDAP server does not returns,
  a message is sent to the user warning the LDAP server is unreachable.
  The error is logged to the server log file.
refs #1076
refs #1077

Removed the ldap authentication option from login view.
Made sure that ldap authentication is the first to be executed if it is enabled on the site.
Made sure that if ldap is enabled and the authentication process fails, it executes the standard authentication.
refs #1076

refs #1077

Removed the ldap authentication option from login view.
Made sure that ldap authentication is the first to be executed if it is enabled on the site.
Made sure that if ldap is enabled and the authentication process fails, it executes the standard authentication.

refs #1055
Added more info about the ldap authentication process to the log.
Merge PR #15
Split LdapAuthenticatable in more classes and improve errors

Added a helper class Mconf::LDAP to remove some of the code from LdapAuthenticatable
and organize it better. Also improved the code a bit in general, especially
the errors returned in case of failures.

refs #1054, refs #1055, refs #1077