Rename auto-pull to hooks, add more tests.

Also use regexps to match user names.