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
Listen on all interfaces for the test server, for ease of development.
Merge pull request #558 from mcav/listen-everywhere

Listen on all interfaces for the test server, for ease of development.
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
ignore output/ directory generated by tools/package.sh script
Merge pull request #561 from mykmelez/ignore-output

ignore output/ directory generated by tools/package.sh script
specify origin for packaged app in manifest
Merge pull request #562 from mykmelez/specify-origin

specify origin for packaged app in manifest