Factor methods out to AbstractDaemonTest

Move the `grant`, `blockRead` and `pushTo` methods out into the
AbstractDaemonTest class, so they can be used by other tests.

Change-Id: I55a023d0ab831a67040ec9525258211eb8fc63cf
Provide a useful body when revision parsing is ambiguous

Change-Id: I845fef6da5f0e01461f2e4be351a39170196b67b
Merge "Factor methods out to AbstractDaemonTest"