Add hooks to calculate session time.

Billing can happen based on time in 20s increments. We need insight into average session duration per service.
because I have to differentiate between `session:close` and sending an `EndState` and I couldn't do that yet because there wasn't an event for the latter.