Implemented (hopefully, needs testing) correct random weight algorigthm. XMPPConnection now tries more then just one possible HostAddress to connect to