Match labels with element ids.

Refs #4578
- Match label "for" attributes with ids from the inputs they're
  labeling.
- Remove extra promise generation from ghost header and footer helpers.
Merge pull request #4582 from jaswilli/ci-adjust

Match labels with element ids.