Moved git2r checkout C code to separate file

* Refactoring to split git2r.c into several smaller files

* src/git2r_checkout.h: Added

* src/git2r_checkout.c: Added