Fix dependencies when there is an empty configuration

When using a empty config there were some errors : 

- logger can exist, but the event listener may not (if no config is set)
- if you have Symfony2.4 but no proxy client configured, the command is injected but the dependency does not exist, to resolve this the command is created with proxy_client and the tag is add only on Symfony2.4 or superior