Add MagentoConfiguration and a command to check validity of connection

$output->writeln(sprintf('<info>"Connection to Magento is OK with %s configuration."</info>',
must be replace by
$output->writeln(sprintf('<info>Connection to Magento is OK with "%s" configuration.</info>',