Remote TF refactor part one.

Clean up current remote manager protocol to use JSON encoded payloads, and
set the stage for splitting out client into a separate library.

Bug: 10919026

Change-Id: Ie6ecc8f6fa42c133a7e2b93861d74115ae8e4a64
15 files changed