Make sure slugs are unique and not integer only.

This fixes issues #1, #2 & #5