Wrote connection manager and classes to handle individual connections and lookup from dht based on jid