Different fixes for the S3 input and output plugins

- Input: Making renaming the region config variable into region_endpoint to be inline with the output
- Input/Output: making sure the endpoint urls are correct for all regions. ( based on PR 632/634 )
- Input/Output: added some extra logging info