Introduce a get_instance factory method for all plugins and other xmpp related classes. This will help us to decouple plugs in order to make them testable.
Gajim will do HTTP CONNECT on proxy to reach the BOSH Conn manager and try
to estabilish TLS (same as what firefox do when approaching HTTPS server via
proxy)
- moved proxy-connecting code to xmpp/proxy_connectors.py
- debugged SOCKS5 proxy code
- tested with Tigase server