Create a generic method for generating slugs that are unique to the table.

Ticket #20
Use the newly created function to create a unique slug.

Ticket #20
Use the generic slug generation also for repeating events.

Fixes #20