[Bazaar] Add Bazaar support

I wasn't able to sort out my previous repository / pull request. I'm not sure what happened, but I couldn't get it passing tests nor could I get it to cleanly rebase. I've manually added the changes to a clean clone of master and I've made sure all the tests pass and it works with Travis CI.