socks4a proxy support (like socks4 with remote DNS)
Fixes trac ticket 995 https://bugs.bitlbee.org/bitlbee/ticket/995
This is slightly pointless for the suggested use case (tor), since with socks5 we already send a hostname instead of an IP address.
Either way, it was easy to implement, so I hope it helps.