Support for CLEAN_ON_DESELECT / RESET

- Adds support for CLEAR_ON_DESELECT / RESET
- Changes Simulator#transmit() to return APDU with SW=SW_COMMAND_NOT_ALLOWED if no Applet is selected
- Adds some javadoc
- Adds security checks to APDU#getCurrent