Fix JSON handling in remote proxy update

Implement `--as-json` argument in gear rotation commands. Correctly implement
error handling when processing remote proxy command results.
Merge pull request #38 from ironcladlou/dev/build-deploy

Fix JSON handling in remote proxy update