Fix APDUScriptToolTest

- use P1=4 for select
- verify output
Merge pull request #50 from robertbachmann/fix_apdu_script_tool_test

Fix APDUScriptToolTest
fix https://github.com/licel/jcardsim/issues/51
Remove javacard.framework public constructors
Remove AID#toString()

- Remove AID#toString() so that it does not show in javadoc
- Add AIDUtil#toString method
Add test case: APDU without selected applet fails
Code cleanup

- Use generics for Class and collections
- Remove redundant imports
- Remove redundant casts
Improve memory handling in HelloWorldApplet

- Only allocate memory in constructor
- Re-use transient memory buffer
Remove transient memory leaks

Remove unnecessary JCSystem.makeTransientByteArray calls
Remove outdated null-checks
Merge pull request #52 from robertbachmann/code_cleanup

Code cleanup
Return SW_COMMAND_NOT_ALLOWED if no applet is selected
Replace duplicated javadoc with @see
Add javadoc to ApduCase, ByteUtil, and AIDUtil
Document applets, migrate to CLA=0x80
Add CLEAR_ON_* support
Make Card#disconnect(true) perform a reset
Check preconditons in APDU.getCurrent()

Make APDU.getCurrent() throw a SecurityExecption if
not called (directly or indirectly) from Applet#process(APDU)
Add AIDUtil#select()
Fix javadoc typos