Moved parse_config from the engine to commonlib

This is another step on the road to make it possible to implement calculators directly from commonlib, without passing from the engine. The immediate goal is to get an event based risk calculator working directly from the ruptures, https://bugs.launchpad.net/oq-engine/+bug/1321681