Finish IMAP and LDAP adapters

- rename $cred/$credentials to $input, and checkCredentials() to checkInput()

- rename FunctionProxy to Phpfunc, in line with other Aura packages

- add LdapAdapter::escape() to escape username value for binding

- finish first pass at testing IMAP and LDAP adapters