Added get_exposure and some refactoring

See https://github.com/gem/oq-risklib/pull/77
The tests are green: https://ci.openquake.org/job/zdevel_oq-commonlib/133
No arguments descriptions ?