Add Bazaar support.

Update #52 based on changes made by #48.