Added Tests target to the iOS project. It shares the same tests as the Mac project, but they can be run on iOS devices.
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.