Added event listeners. Finish peer listener and implement client thread. Finish client and peer protocols to fire event on listeners.