Lots of changes in dou-file. Added hash functions for EntityId, InstanceId, HandlerId and ChannelId to be able to use them as keys in dictionaries.