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