Forked from supahfunk's https://codepen.io/supah/pen/BjYLdW
A wrapper for the generated `ApiClient` class tracks the number of running queries. This makes it much simpler to show the "API calls pending" UI element, regardless of which part of the webapp performs the queries.
The spinner starts fading in when API calls take longer than 100ms. Not used yet, how to hook it up to API calls is still being discovered.