Add reflog parameters to remote apis

Also added a test for git_remote_fetch.
Add reflog params to git_repository_detach_head