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

Updated and cleaned up nrml asset template.
oq-ui-api/geonode/exposure/views.py:

Added population csv and nrml export.
oq-ui-api/geonode/exposure/util.py:

Added some ORDER BYs to the building exposure queries.
oq-ui-api/geonode/exposure/util.py:

Added population-only exposure query.
oq-ui-api/geonode/exposure/tests.py:

Updated expected XML in tests.
oq-ui-api/geonode/exposure/views.py:

Added missing nrml footer to the XML generator (for population).
oq-ui-api/geonode/exposure/tests.py:

Added tests to improve covering, to test view logic, etc.