oq-ui-client2/exposure_export.html:

Fixed exposure export form request url.
oq-ui-api/geonode/exposure/views.py:

Moved copyright head into a constant.
oq-ui-api/geonode/exposure/views.py:

Added `num_list_to_sql_array` util function.
oq-ui-api/geonode/exposure/views.py:

Removed unused variable.
oq-ui-api/geonode/exposure/views.py:

Broke out queries into separate functions, and a bunch of refactoring.
run-exposure-tests.sh:

Added a script to help run tests for the `exposure` module.
oq-ui-api/geonode/exposure/util.py:

Added `util` module.
oq-ui-api/geonode/exposure/views.py:

Numerous cleanups, bug fixes, and refactoring jobs to prepare the
exposure export views for testing.
oq-ui-api/geonode/exposure/tests.py:

Implemented the first round of tests for exposure views.

This includes the functionality for doing export exports.
oq-ui-api/run-exposure-tests.sh:

Added a script for running exposure tests.