Update to use slugs in urls

Closes #73 

This PR supersedes #144