correct calculation: last - first
simplify linestring before returning geojson representation to client.
speed up height profile calculation, store trail length after creation
via post save hook
use diferent approach to calculate slopes.