use secure random
Now possible to add index constrains on properties, fixed all RSpec and some renames/refactoring.

The property on which the unique id is based on can now be configured.