Slugify a given attribute of an entity

replaces all non alphanumeric characters (A-Za-z0-9) and dashes (-) with a single dash
toSlug -> slugify
Merge pull request #43 from owncloud/slugify

Slugify a given attribute of an entity