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