Add certificate check callback

libgit2 now requires an (optional) callback to accept/reject a certificate.

- [x] Implement
- [x] Add HTTPS network tests (to verify X509 callback) 
- [x] Documentation