Refactor to pass injected instances through HookArgs

Instead of injecting the SitePath and GitRepositoryManager in all the
places they're used, inject them only in HookFactory and pass them
around through HookArgs.

Make objects package visible in HookArgs so that they can be accessed
directly rather than through getter methods.

Change-Id: I0cee06e4928748e7dba0315653def894d27244de
5 files changed
tree: aa0401f04fe4672dce6a56c7fca1ee7211c75909
  1. .gitignore
  2. BUILD
  3. LICENSE
  4. src/