Refactor slug validation
Fixes #29 works and tested
Merge branch 'development' of github.com:alnutile/cms into development