Add shebang to update scripts and fix Xcode references
Rename GTReference `-type` to `-referenceType`

They were incorrectly converted to git object types. This is how rugged does it.
Make GTObject more classcluster-like.
Fixes after review.
Make `-target` saner

by making it return a GTObject if it's a direct reference or another GTReference if it's symbolic (a.k.a it does only one level of resolution) and `-resolvedTarget` & `-resolvedReference` which respectively return the GTObject behind a chain of reference, or the last direct reference in a chain.
This one can be pretty-printed.
Rename `-target` so the compiler complains.
Code conventions
Remove unused reference type.
Add a convenience method to get the SHA of the target.
Merge pull request #183 from tiennou/fixes

Fix some issues
we know it's unused, it's ok