Moved parse_config from the engine to commonlib

See the description in the companion PR, https://github.com/gem/oq-engine/pull/1475