add getWaypoints and toPolyline methods

Adds the following new methods to L.Routing to obtain route data:
* getWaypoints: get all waypoints, use case is to generate download links, another might be a route permalink
* toPolyline: get calculated route as single polyline, use case is to calculate stats (length) and an elevation diagram
* _eachSegment: private helper to iterate over all segments