Properly handle 404s in BitBucket API layer.
Review Request #7376 — Created June 4, 2015 and submitted — Latest diff uploaded
We weren't translating 404 errors into FileNotFound, which could result in
uncaught exceptions when trying to detect whether files existed.
Ran unit tests. The newly-added test fails without the exception handling with
the reported error, and succeeds after.