Preliminary implementation of Measure

NOT ready to merge
In particular arrows only use output units.
Companion Branches: core - units, svg - units