Fix attaching to blank and locked kinetis parts and other things

Improve handling of blank and locked Kineits parts, add 'with' support to board and improve handling of keyboard exceptions.

(1<<2) should be replaced by MDM_STATUS_SYSTEM_SECURITY ? I noticed you added some MDM constans , some are not used.