add beginnings of BitBucket support. Still needs lots of testing