Progress Bar support

Preliminary work needed to implement a progress bar on the openquake platform.