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.
Does not really matter in this case, but generally we prefer immutable objects which eliminate some sources of bugs, e.g., thread-safety.