Added the git_tag_lookup_byname function.

This allows one to retrieve tags by the tag name instead of by the reference name.

This pull requests is to resolve the issue #1515