Repository: add #merge_analysis

Determine what merge-tangential actions can be performed.
Extended docs for `Repository#merge_analysis`.
Merge pull request #341 from libgit2/cmn/merge-analysis

Repository: add #merge_analysis