Preliminary implementation of Measure

Please do NOT merge
In particular no arrows
Companion branches in -lib, -svg