[FIXED JENKINS-16888] compute ObjectId before checking isCommitInRepo
added unit tests to cover 
- fetch from multiple repositories [JENKINS-16914]
- merge basic scenario
fix broken GitPublisherTest#testMatrixBuild
[JENKINS-16914] set remote.<remoteName>.url before fetch
added test for "merge and push" scenario
pull up utility methods to AbstractGitTestCase