add test for segfaults
update test
things are much closer now, and the segfaults are much firther
make selfFreeing public
dont test only one test
change createCommit to create for consistancy
rename create{X} to create
Merge pull request #246 from nodegit/refactor-classes

Refactor classes