add openjdk6
Use grovvy scripts for integration test.

Runs way faster than bsh and there is actually IDE support.
Add more integration tests for switch behaviour.
fix bad license headers
add comprehensive test suite for resources
add comprehensive test suite for classes.
Start refactoring the duplicate checking code.