Add a facility to read source models in commonlib

The tests are green: https://ci.openquake.org/job/zdevel_oq-commonlib/180