set threads=1 in Apache config to work around TurboGears bug

This is to work around a thread safety issue where TurboGears
intermittently raises NoApplicableMethods if you hit it while the
application is starting up in a multi-threaded server.

Bug: 796037
Change-Id: I226001f428c5a29e7ce0e1a724cd60ff276b89e9
fix exception message for createrepo failures

Change-Id: I9c554ee48751dcd9ec1b84d6526ae525576efd26
/distribution/beaker/dogfood: set up config as expected for tests

LDAP config and SLEEP_TIME are new. Also rearranged the sed'ing, and
updated it to only touch files which exist, to better support running
the task on a separate server and lab controller.

Change-Id: I4bad8fb4a9de006fe4ac43e899f0f6b1c7edb19d
/distribution/beaker/setup: create client config

As of commit 4e60b1e0 we don't ship /etc/beaker/client.conf in the
client package, so the task needs to write a complete config.

Change-Id: I3bebb6a529467c69e4d0f2d1785d6c0a3734fe37
tests: expand hacky repodata perms fix to cover all tests calling beakerd

The "hacky fix" was done for test_beakerd.py in commit 7432ec1a but
there are other tests which also call beakerd code and therefore have
the same problem.

Change-Id: Ie9c4ab9fbaf9886aa38ef020357cce5a53319bf9
Merge changes Ie9c4ab9f,I3bebb6a5,I4bad8fb4,I9c554ee4,I226001f4 into develop

* changes:
  tests: expand hacky repodata perms fix to cover all tests calling beakerd
  /distribution/beaker/setup: create client config
  /distribution/beaker/dogfood: set up config as expected for tests
  fix exception message for createrepo failures
  set threads=1 in Apache config to work around TurboGears bug