Added new functions and events to RegionSyncAvatar to match IClientAPI
Performance optimizations. Reorder loops, reduce dictionary lookups, don't rebuild hashsets and SyncedProperties if we don't have to