Adds plan-patch command to CLI

Adds plan-patch command to command line interface.
Adds simple test for that command.

Change-Id: I3c34e6a16b31165b3b955fb759ae85810e6c9fc5
Merge "Adds plan-patch command to CLI"