Fixed commit to produce an error when nothing added

* src/git2r.c (commit): Commit now produces an error if nothing added
  to commit.

* tests/commit.R: Added test case to test that commit produces an
  error if nothing added to commit. The test case also checks local
  config of user.name and user.email.
Added more tests to check commit functionality