Allow the path and url generating functions to take a single argument

I quite often find myself wanting to call the `...-url` and `...-path` functions with a map, e.g. when a row is pulled from a database. This patch allows you to pass such a map as a single argument to these functions, while also preserving the old interface.