Make ClientApi an EventEmitter, to allow tracking of API requests.

This makes it more suitable for use in a loadtesting script.
Merge pull request #149 from mozilla/client-event-emitter

Make ClientApi an EventEmitter, to allow tracking of APi requests.