use router->generate for all non template files

this uses router->generate throughout, except for the ezpages link
generation. We will need a routing loader for ezpage to handle that.