rbt patch subcommand to support --print option

This adds an option to print the patch to stdout instead of trying to apply it.
This allows more flexibility. i.e. in case the patching fails, or the user
wants to inspect without patching.

Reviewed at https://reviews.reviewboard.org/r/4525/