refs: improve API (#213)

Changes:

- Reference.oid and Reference.hex removed
- Now Reference.target can be assigned an oid
Issue #214: Cannot call TreeEntry() / IndexEntry()
Fix a couple of compilation warnings
travis: we are back to use libgit2's master branch