JCLOUDS-457: Added TreeHasher util class and its test.

The TreeHasher class allows us to calculate the linear hash and the
treehash of the archives and multipart upload parts.
Use `remove()` here? We want to fail if the queue is actually empty for some weird reason, I guess? And perhaps add a comment "// hashedQueue should contain exactly one element now" or so?