Fixing S3 input and output

- Input: Fixing inclusion of library ( LOGSTASH-1321 )
- Input: adding better validation for region
- Output: Fixing region validation ( LOGSTASH-1319 )
Merge pull request #636 from electrical/fix_s3

Fixing S3 input and output