Working implementation of gossip protocol

Code needs to be refactored and polished as alot of duplication is used.
Merge pull request #2 from rich4756/gossip_protocol_attempt

Working implementation of gossip protocol