Fixed some issues with the bitbucket branch view. Commonalized a few controllers. Will need to abstract them later