Moved get_realizations from the engine into commonlib

See https://bugs.launchpad.net/oq-engine/+bug/1394894.
The tests are green: https://ci.openquake.org/job/master_oq-risklib/100
if self.oqparam.concurrent_tasts == 0, concurrent_tasks will be 1