Add flag to ignore pre- and post-hooks

Adds the ability to specify on the command line that pre-hooks
(--ignore-pre-hooks), post-hooks (--ignore-post-hooks), or both
(--ignore-hooks) should be ignored.