Updated templates and js so that urls use reverse resolution & naming.