Added methods to check if all global IDs are set, and if a global ID is
valid.
Made isGlobalIdValid public static, and fetchGlobalIds public.
Implementation of sync client and sync server.