Add method is_commit
Better reflog message check in git2r_checkout C functions
Refactor checkout methods

* R/checkout (checkout): Drop argument msg and who from checkout
  methods. Determine reflog message and signature in internal checkout
  method

* R/checkout (do_checkout): Add internal checkout method

* tests/checkout.R: More test cases

* Add and update documentation