export a function to receive module-level options

Change the export to a function that takes options for passing through
to configure AWS as its more flexible.  Still defaults to env settings.
 Make putTile a bit more resilient to failures.
back out exporting a function, remove extraneous logging
adding some docs