Add fork function in bitbucket/repository module. Also added test module for fork function