This implements visibility for build jobs. The visibility can be set
when submitting a build, and can also be changed retroactively from a
new job settings page.
A lot of queries are for jobs by their group ID. These queries are
starting to show up in the slow query log. Add an index on the group ID
to speed things up.