assemble a custom pregenerator for static external urls

we split the pattern via urlparse and pass the parts into the pregenerator
such that route_url will behave as expected, mainly by assembling an
appropriate value for ``_app_url``

TODO: add tests and support patterns without explicit scheme