Add protection against a null LocalSiteProfile.permissions.

It appears that it's possible a LocalSiteProfile.permissions to be None,
and in this case, permission lookups will fail. We're now more careful
about this, and default it to {} when processing.
Fix default focus in the Review form.

The default focus for text areas in the Review form wasn't always
correct. This has been fixed on master, but not 1.7.x. We now tell all
the inlineEditors not to focus themselves by default, so that we can
control the focus.
Fix for LDAP authentication with LDAP servers that don't allow anonymous searches

When authenticating a user for login, the current code does an anonymous search
to find the user, and then attempts to bind as that user when the search
results contain that user. This is a problem since some LDAP servers do not
allow anonymous searches. Fix is to do the anonymous search still, but if the
search results in no entries, attempt to bind as that user anyways by
constructing DN from the username plus configured base DN. If the search does
contain the user, use the DN in the returned result.

Testing done:
Tested in-house with LDAP server that doesn't respond to anonymous searches.

Reviewed at https://reviews.reviewboard.org/r/4953/