Started implementing listen. Added JSON serialization for Messages