Replaces RefOptionHandler by RevCommitHandlerOptionHandler. RefOptionHandler validated any Id that the repository could resolve. It included Blob and Tree ids. However only id of commits are valid for the merge and the diff operation. Change-Id: Ic8625f359ebfa796c93db21fe077d8c1a0e77065