API metering

We need to be able to calculate all the costs that we invoice the customers: e.g. hub users, CDN - content delivery network (api traffic).