Support JSON for plugin list command

Move the plugin list command implementation to the server, so it can
be used from HTTP. Add a format option.

Signed-off-by: Brad Larson <bklarson@gmail.com>
Change-Id: Ie0621d78eb0f3f0fbd37e9fb42452f027ab7c349
2 files changed