db/models:

Fixed an indentation error.
bin/openquake:

When printing a list of outputs, order by output_type
tests/data/end-to-end-hazard-risk:

Added a pair of hazard/risk demos to test end-to-end calculation functionality
and ensure that outputs can be generated and exported properly.
tests:

Renamed `helpers.get_risk_job` to `helpers.get_fake_risk_job`.
tests/utils/helpers:

Wrapped a line which is too long.
tests/utils/helpers:

Added `run_risk_job` and `get_risk_job` util functions.
tests/export/risk_test:

Added `test_classical_risk_export`, which runs a hazard calculation and then
runs a risk calculation based on the hazard results. Then, it exports
everything to "smoketest" the exporters, which were, until recently, broken.

They were broken due to a collection of bugs strewn about the risk engine.