Make macros to handle returned error code.

- make macros to handle MPI, PETSc and ASSERT error code
- add unit test
Add inline function what check error.
Merge branch '1.8.0_master' into DF_chkerr_macro
Merge pull request #206 from flow123d/DF_chkerr_macro

Df chkerr macro