1408 better server logging

Handle unhandled exceptions, both in api calls, and in various child processes

Errors in child processes have to be handled explicitly, separately for each child process.
Errors in api are to be handled by a simple error handler middleware