Add a JSONProtocolChannel to libphutil
Summary: This lets us build a test client for Aphlict from the CLI, to make it a little easier to debug stuff.
Test Plan: Ran unit tests. Built an Aphlict CLI client.
Reviewers: btrahan
Reviewed By: btrahan
CC: aran
Differential Revision: https://secure.phabricator.com/D2926