move setup of AWS connection out of init
add tests for s3cf