Added Polyline GeoJSON output

This pull request implements GeoJSON output for polylines using a form similar to that used to output GeoJSON for coordinates.