Introduce logging mechanism
Introduce `*-remaining-api-*-message-threshold'

`stack-core-remaining-api-requests-message-threshold'

See docstring for details.