Pass a reference to a request method instead of a string
Extract host to class variable
Make unit tests more assertive
Use close() to invalidate auth token
Add missing event fields