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.
@tomaszdurka  I'm going to recheck for the same mistake through the whole and fix them in this PR. Is it ok?