Allow to connect to untrusted https servers using libgit2

Allow to connect to untrusted https servers using libgit2 and present the user a meaningful warning dialog.