Add Bitbucket provider, fix some bugs