This prepares us for hash-based permalinks (#81) and removes the duplication between index.html.erb and SiteController#edit.