Enforce that realm name is unique in model
Merge pull request #350 from stianst/constraints

Enforce that realm name is unique in model