Refactor add method to use git2r_index_add_all function

* R/index.r (add): Use git2r_index_add_all to add files to the index
Add index test cases (tests/index.R)