Add MagentoConfiguration and a command to check validity of connection

I added a comment for that upper. You've to inject it in your factory.