Add certificate check callback

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