Added Bitbucket support (closes #530)