oq-ui-api/geonode/exposure/util.py:

Added missing license header.
oq-ui-api/geonode/exposure/util.py:

Moved a bunch of util functions out of views.py and into util.py.
oq-ui-api/geonode/exposure/views.py:

Moved a bunch of util functions (related to GED DB queries) to the
util.py module.
oq-ui-api/geonode/exposure/views.py:

Added some better documentation for the lowest common admin level
query.
oq-ui-api/geonode/exposure/tests.py:

Adjusted tests to make them all run, since we moved a fair amount of
code to the util.py module.