Common EventEmitter implementation for both server-side NodeJS and client-side Browser environments.
All the awesome of HEM with a proxy for any API urls
Detects the environment where the current script is running: NodeJS or Browser.