Removed the links between Territory and User components with a view to
reinstate later.
Spotted and fixed exception when casting list to set.
Fixes #140