WPS process to rank points along a track/route

Update of ktcorby's efforts on PR#73
Since this is done in a few places, it might be worth extracting as a method.