Added code to use app in config.ru if non is specified as per https://github.com/uglyog/pact/issues/9
Refactor config_ru lambda