Allow to disable hooks per project

Closes #545

Signed-off-by: Michal Čihař <michal@cihar.com>