Adding branch param

A small tweak to allow specifying a branch, with &branch=foo on the URL.  Adds &sha=foo to the github PI call.

I've never used coffeescript before, but the generated JS looks OK, so I think I got it right!