Import pygit2 test suite

@esc How does this look?

Total 151 tests (of which 119 are from pygit2). 69 skipped as I have not implemented that functionality yet (mostly to do with writing to the repository).