route-path-calculation bugfixes (mostly related to when to trim/append pathseg separators), and wrap the request/response in something that can track when end() is called, so we can tidy up afterward.