Detect certificate and other web failures, and handle accordingly.

In all cases, we remove partially downloaded files.

If we detect a certificate error, we promptthe user to use `mozroots`.

Closes #24