Made GenerateUniqueId public to allow for replacement in MVC tests
- #241