wip: metering

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