Normalize SC_ERROR_* API and clean up ISO7816-4 errors.

 * iso7816_check_sw() emits a "informational message" (from ISO7816-4 table 6)
 * SW-s which are not known or not meaningful for internal API get translated
   to SC_ERROR_CARD_CMD_FAILED by default, so use it also in the SW table
 * Remove undefined SW-s and move generic SW-s to their sequential location.

This commit improves 8fc679bf4062bc1d74092ed51eab663620dabaef
pkcs11: report the library version based on plug-n-play feature.
pkcs11: Don't touch readers or inserted cards in C_Initialize in 2.20 mode

This significantly speeds up calling C_Initialize.
Thanks to Nikos Mavrogiannopoulos for the tip.
pkcs11: use calloc instead of malloc; remove obsolete malloc.h references.
build: check for dlopen() in a BSD-friendly way.

From http://www.flameeyes.eu/autotools-mythbuster/autoconf/finding.html
build: remove useless svnignore file
build: svnignore went away in previous commit