Add initializers that can return a NSError instance on error.
Replace git_oid by GTOID in GTRepository.