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

This makes it more suitable for use in a loadtesting script.  As suggested in https://github.com/mozilla/picl-idp/issues/137#issuecomment-22720649

@dannycoates r?