Refactor back-end polling into root controller

...instead of an angular "service" that isn't tied to the model
(`$scope`).

Controllers inherit the scope from parent controllers (that is,
controllers attached to a parent node in the DOM), so this simplifies
the code greatly. If we have this DOM:

    <body ng-controller="ApplianceController">
      ...
      <div ng-controller="AutomatedController">

...then `AutomatedController` can reference
`$scope.test_pack.branches.master.sha` (from the parent
`ApplianceController` scope) in its javascript code and templates.
We don't need to communicate these values via complicated `$broadcast` +
`$on` event handlers.