Support badges per branch

This PR adds support for generating status badges per git branch.

Branch can be specified by the `branch=<mybranch>` query parameter, see [documentation](476420d).