Only load tests.jar when actually testing

This restrictes the loading of tests.jar to when the Java tests are actually
being run.
Switch to |fs.close| calling |fs.flush|

Issue #388.
- Adds a dirty flag to our FD, updates it on write/truncate/flush
- Only flush if the dirty flag is set
- |fs.close| calls flush
Enable image.processing to work also if aspect is "LockToPartialView"
File.Connection.truncateImpl should use size param

|fs.truncate| is too simple for this case, we need to use |fs.ftruncate|
like it was originally using.
Update nokia.image-processing Scale error message
Add packaging helpers

- tools/package.sh - generates an output dir suitable for packaging as a WebApp
- tools/explode.sh - converts a compressed jar to an uncompressed jar
Only load tests.jar when actually testing

This restrictes the loading of tests.jar to when the Java tests are actually
being run.
Specify jars=tets/test.jar for tests that need it
Merge branch 'tests_jar' of https://github.com/EricRahm/j2me.js into tests_jar
Merge branch 'master' into EricRahm-tests_jar
Merge branch 'EricRahm-tests_jar'
Merge pull request #553 from EricRahm/issue_388

Switch to |fs.close| calling |fs.flush|
Merge pull request #554 from marco-c/locktopartialview

Enable image.processing to work also if aspect is "LockToPartialView"
Merge pull request #556 from EricRahm/helpers

Add packaging helpers