Leg and trip graphs

and appropriate STATS object building