Consistent error handling

- [x] Server must return errors that have consistent format.
- [x] Unify way of handling with Throw and Callback errors.
- [x] Handle all errors. Now app can skip some errors, for example in PulsarDB.
Do you really need this custom host for certs?