Backport PR #5647: Mention git hooks in install documentation

This addition is done to avoid problems similar to #5355
Backport PR #5657: use 'localhost' as default for the notebook server

instead of loopback IP

seems to workaround weird issues with Sophos on Windows, and should behave the same everywhere else.