Use slugified urls for forum questions

Slugs are generated on-the-fly, and not stored in the database
since they are currently only for url garnish.

Add a global generateSlug function in client/controllers/application.js
that is used by the server to generate slugified urls and also by
a global template helper of the same name.