Refactored S3 using AWS library and update with new filer API

If it's a string, then you need to use [Buffer.byteLength(String)](http://nodejs.org/api/buffer.html#buffer_class_method_buffer_bytelength_string_encoding). If the object you're putting is already a Buffer, then you can safely use `buffer.length`.