Preparing packaging, cleaning up tree, etc.

tools/package.sh refreshed to build .tar.bz2 files automatically.
Changelog updates, version bump, minor code changes.