Add logging to configuration lookup error
Modify permission mechanism

Added configuration-level permission checking.  The configuration can
return a final True or False, but if it returns None, the code will
fall back to a registry permission check.
Merge branch 'master' of https://github.com/pivotal-energy-solutions/django-appsearch
Add 'term' validation check to end_term