Validate custom hooks prior to logging them

Gitaly's TransactionManager is currently not validating the custom hooks archive prior to logging it. If the the TAR is invalid, applying the hooks would fail and thus halt log processing. We should validate the TAR and its contents are valid before logging it.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information