Suffix and tests

This adds suffix support, the code expects the file extension (.png, .gif, etc..) to be added to the newline separated data of some events -- it will default to .jpg if not present, so this can be deployed independently from the related changes to musicbrainz-server.

I added some tests which attempt to test that when a handle_event() call is made the correct requests are made to S3.