Add ability to get badge for the specified branch

This PR adds ability to get badge for the specified branch. `master` is the default.