moving slug handler into routes.js
Merge remote-tracking branch 'origin/master'