git_repository_state_cleanup() should remove rebase-merge/, rebase-apply/ and BISECT_LOG
Rewrite `git_repository__cleanup_files`
Merge pull request #2259 from libgit2/vmg/state-cleanup

Rewrite `state-cleanup`