WPS process to rank points along a track/route

Update of ktcorby's efforts on PR#73
Break this up into some more intermediate values for readability.