fixing endless loop with wrong/unsupported credentials WIP

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
okhttp 1.5.4 (because I can)

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
fixed minor issue with wagon http header management

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
fixed intermittent unit test failure on java 7+

some tests were not properly cleaning up after themselves,
which was often masked by undefined test execution order
on java7 and newer

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
Fixed test jetty handler writing 1-too-many bytes to http response

Response output stream throws IOException when number of bytes written
exceeds set response content length. Depending on operating system
scheduller, the exception may be handled before content is fully written
to network socket, which in turn results in IOException and failure
in GetResumeTest. The test failure was observed on relatively slow
linux box, where 1 in ~10 builds failed before this change.

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>