Added a refresh function that refreshes the last route with an optional
parameter
route_for accepts an external parameter, which forces the generation of
a full route to the function (from http(s)://...)