Fixes due to typescript upgrade to 0.8.2
Some minor fixes in route
Added a unit test for testing deep routes that go back one route.