Run operations in threads and queue calls.

Handle blocking code using a queue to store calls, a queue processor
that runs in a loop and defer calls into threads to avoid blocking
worker.
Improve parameter handling.
Do calcularor-alike operations in the example app.

Updated the api/signals/demo-app to send and receive parameters so all
possible communication way gets covered.