Fix template to start with unique directory to avoid permissions issues.
Also make JDK5 fixes.
Calculate checksums for imported images

The checksum algorithm has been changed from SHA-1 to Adler32
(with the possibility of further extension). The new faster algo
calculates values, that are then stored in the Pixels table.
Changes have been implemented both client- and server-side.