Revert previous revert

I found the commit that caused the bug that caused me to do the last
revert. I'm therefore reverting the previous revert and I will be
committing a revert that reverts the commit that introduced the bug. See
next commit.

This reverts commit db2d38a7aff246cea2d748d210ea118a67dc4945.
Revert "Use switches on settings pane"

This reverts commit 357b176f93085bf55311301fa2c07e675dda1e09.

This commit seems to be where the bug with enabling hooks was
introduced, and reverting this commit seems to fix that bug.

Conflicts:
	assets/scripts/app/controllers.coffee
	assets/scripts/app/templates/repo/settings.hbs