Add internal function to handle merge logic

* src/git2r_merge.c (git2r_merge): Internal function to handle the
  merge logic with merge analysis and merge using normal merge or
  fast-forward merge.

Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>