Move secure URL generation to the Router
Add secure URL generation for assets