wip: metering

Change-Id: Ia10d79e6277508ef4c551681efe3a9c2418b3470
Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>