WAGON-405: refactoring of auth code
Upgraded HttpClient to version 4.3.1