add bitbucket support, abstract out the url creation for repositories