Move S3 functionality into salt.utils

This makes it usable from things like salt.fileclient