gss: Empty application data messages must not trigger end-of-stream

Addresses an issue in which SSL application data messages with zero
payload are misinterpreted as end-of-stream. This bug causes JGlobus
to fail with more recent versions of curl.
Merge pull request #99 from gbehrmann/fix/v2.0/empty-ssl-message

gss: Empty application data messages must not trigger end-of-stream
ssl-proxies: Add information about chain to CertPathValidationException

CertPathValidationException has fields to capture the CertPath and
certificate index that triggered the validation failure. This allows
an application to provide more information about the failure to the
user. Yet, JGlobus didn't fill in these fields of the exception,
meaning that the user would not be offered any information beyond
a simple error message saying that the certificate was rejected.

This patch adds the missing information. An application still has to
detect the exception in the exception cause chain and present it to
the user in some form.
(cherry picked from commit df5c4f845bf2da7e15a075aa187f211014542827)
Merge pull request #100 from gbehrmann/fix/v2.0/certpathvalidation_includes_certpath

ssl-proxies: Add information about chain to CertPathValidationException
Make input streams buffered and close them after use

Several input streams were unbuffered and others were not closed
after use.
Merge pull request #114 from gbehrmann/fix/inputstream

Make input streams buffered and close them after use
Fix a few races

- GlobusPathMatchingResourcePatternResolver is not reusable and should thus
  be recreated every time it is needed

- AbstractResourceSecurityWrapper#refresh was not thread safe

The patch addresses these issues and in the process cleans up the construction
of AbstractResourceSecurityWrapper objects.
ssl-proxies: Refactor ResourceSecurityWrapperStore

Simplifies and optimizes the code and fixes potential race conditions.
ssl-proxies: Fix races in PEMKeyStore
issue102: fix - index caches against domain name rather than hash of encodings

(cherry picked from commit e70c71dc28597085618e6696ddbdfbf9fd290a7a)
(cherry picked from commit 84a05be6d6acba1ec4fa341db7412a1db12832c6)
(cherry picked from commit 144e9bc227cca16e2b097423b6deba77ba917eeb)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Merge pull request #115 from gbehrmann/fix/securitywrapper

Fix a few races
Merge pull request #117 from kofemann/iss8052-v2.0

issue102: fix - index caches against domain name