Add MAPI error codes and helpers
* src/mapierr.cpp, src/mapierr.h: New. * src/mymapi.h: Include it. * src/Makefile.am: Add it to sources.