New helper method for getting commits between branches.

I've made a new helper method for getting commits which are in one branch but not another. Also added an optional flags parameter to get branches.