Refactored BitBucket integration + private repositories