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.
Merge branch 'release-1.7.x'