Fixed http and spruced up attachments

http.php was missing necessary options for sending file data. php_curl
is not fun.
Readme had a broken example, added fclose to http logic
Fixed formatting
changes for our environment