Issue #233: initial round of changes in support of adding gitorious and bitbucket
Issue #233: bitbucket implementation and tests