fix SubApplication embedding by recompiling the path pattern, which was also broken out to a separate function in routing.py.
fix a few speedbumps in routing tests, and note slashing behavior (likely subject to change)