slug: add a base slug mixin and util module.