Expose new method: getSyncCommandLine()
Ignore trailing newline in deployed revision
Notify before post-update hook

Otherwise upon post-update hook failure there is no way to resend the
notification.  Post-update hook failures are accounted for and handled
by the deployment operator anyway.