chore(base): extract slugify from api.js into misc(extend underscore _.slugify)