Refactor to leverage BitBucket's new "raw" API

We no longer need to download an entire tarball or save files, we just
proxy requests directly to BitBucket.