Basic support for risk calculators in commonlib

The tests are green: https://ci.openquake.org/job/zdevel_oq-commonlib/173/
Notice the companion on risklib: https://github.com/gem/oq-risklib/pull/80
But if you don't implement the core_func method in the subclass, then NotImplementedError is raised. I guess I am missing something here.