add Refs.nameToId and test
Merge pull request #267 from nodegit/RefsNameToId

add Refs.nameToId and test