wip: metering

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