See for example bug 880852. I have some ideas about ways to clean this up, I will write them out here later...
On Gerrit: http://gerrit.beaker-project.org/1539
The details of these changes are covered by the automated test suite, and beakerd is up and running normally on the test system with these changes in place.
Beaker 0.11.0 has been released.