Introduce extra_parameters as a special parameter in path that takes
any extra URL parameters that come in. For now the IDENTITY_CONVERTER
is used for these, but will introduce converter infrastructure for this
later.

Also rearrange the way the inverse path is determined. It's now
based on generic functions entirely, which allowed for a simplification.