Fix s3 writes with style procs

S3#flush_writes was accessing the styles option without checking for a
proc. We can just use the instance's styles method to have it done for
us.
Refactor style specific headers code

Allow either a hash or a Style object to set the headers.