Added basic real time call tracking.

Just a basic implementation of a basic real time api call tracker. This
will possibly change quite a lot, but for now as a basic example it
should be sufficient.