Made rake test package the jar for JRuby as a dependency
Crude testing setup.
Improve SecurityException detection.
Tweak the no-unsafe test case.

The no-unsafe TS::Cache test suite is now run by passing a TEST_NO_UNSAFE env var like this: rake test TEST_NO_UNSAFE=true.