Fix cascade delete

Closes #4.
Generate truly random ids

Previously it was possible to end up with same ids if the items were
created too close to each other! This should work better.
0.7.4