Clean up old templating and fix urls.