Added JSON support.
Changed server -> client messages to JSON.