sm: move SM common crypto procedures to the dedicated library

rename 'sm' source directory
opensc-tool: add 'call-SM-handler' command

'open' and 'close' handlers of the card's SM driver can be called
SM: move SM APDU procedures to dedicated source file

new SM errors: 'session-already-opened' and 'invalid-checksum'
declare typed data for DH SM session
libopensc: APDU 'allocate & copy'and 'free' procedures
SM: common SM 'increase-sequence-counter' procedure
Update wiki URL

The wiki migrated from opensc-project.org to github.com
Fixed file-id in myeid.profile
Update src/tools/pkcs11-tool.c

fixed filling key type attr on writing object

pointer refers to local variable from destroyed stack frame
sc-hsm-tool: Added better error handling for non-SmartCard-HSM cards
sc-hsm: Fixed a bug that prevents a newly generated 2048 key to show up at the PKCS#11 interface
sc-hsm-tool: Added support for DKEK password sharing scheme
sc-hsm-tool: Added threshold scheme parameters to manpage
sc-hsm: Fixed problem deleting CA certificates
sc-hsm: Fixed public key format returned when generating ECC keys
Fix to allow exponents other than 65537 for Feitian ePass 2003
Upgrade the MacOSX package build script to current state of affairs.

 - Target only Intel (available since 2006) and OS X 10.6+ (released in 2009)
 - Use sources only from https://github.com/OpenSC/
MacOSX: remove obsolete EXTRA_DISTs from Makefile.am

build scripts have been changed in 3fc2dbc9
Fixup: somehow a double "make make" slipped through.

Thanks to Pohjalainen Pietu for noticing it.