Check APDU#setIncomingAndReceive() preconditon

- add check to APDU#getIncomingLength()
- add check to APDU#getOffsetCdata()
Minimal support for T=1 and T=CL

- add Simulator#changeProtocol method
- inline some package-locals from SimulatorRuntime
- add DualInterface sample applet which denies write
  operations on contactless interfaces
Fix javadoc errors
Add ASL-2.0 headers
Merge pull request #54 from robertbachmann/t_cl

Minimal support for T=1 and T=CL