Cleaned up duplicate -framework flags in the iOS unit tests target.
Changed global id fetching so that ids only have to be unique on a per-entity basis. Two entities can have the same global id string.
Also added unit tests. All passing.