Collapse path parts for inbound requests

This applies the util from the last commit to the Aspen request
processing cycle.