Preliminary implementation of Measure

Please do NOT merge
Companion branches, -lib, -core