fix for s3put host specification - issue #2522
changed where host is handled
added test cases for host parameter
changed logic to be safer
attempt to add authentication
moved to integration
Merge pull request #2736 from Captainkrtek/Fix_S3Put_host

Fix for s3put host specification. Fixes #2736, #2522.