cli: Add `flynn json` which dumps CLI metadata.

Resolves #296.
You should encode the json directly to stdout