Add MagentoConfiguration and a command to check validity of connection

The return is missing. It should contains the status code (0: ok, >0: ko).