Examples, tests and notebook for the feature of oq-lite

This is the content of the course I gave yesterday. It requires the companion https://github.com/gem/oq-risklib/pull/81. The tests are running here: https://ci.openquake.org/job/zdevel_oq-commonlib/179
This file is generated by the XMLWriter