Add url() method for running Wsgi instance

This new methods allows a module to pass a handler (and any required
parameter) to get back the URL that would correspond with that handler.
The implementation uses a handler-to-pattern mapping so that the url()
calls can be resolved without needing to search the entire routing tree
for the handler.