add getWaypoints and toPolyline
Merge pull request #9 from nrenner/waypoints

Add #getWaypoints() and #toPolyline() methods