Working implementation of gossip protocol

Code needs to be refactored and polished as alot of duplication is used.