Add rb_git_remote_check_connection

This is useful if one needs to check if it is possible to
fetch/push from/to the remote.

Basically this is the analogue to `git fetch --dry-run` and `git push
--dry-run`.
Merge pull request #397 from dmedvinsky/remote-check-connection

Add rb_git_remote_check_connection