More work on checkout functionality

* src/git2r_checkout.c/h: Added the functions checkout_commit,
  checkout_tag and checkout_tree. The checkout functionality is not
  yet finished.