Add PlanGeneratorTest
Rewrite generateItinerary() method
Test that a LEG_SWITCH mode at the end of a graph path does not generate an extra leg
Do not repeat last leg when ending with a transit mode
Also test that such a LEG_SWITCH mode does not show up as part of the itinerary.
Fix It Again Tony
Merge pull request #1191 from goabout/generateItinerary

Complete rework of itinerary generation from Jorden Verwer