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
Attachment upload/curlfix

Added logic for attachments object to properly set name to filename
rather than setting the file name as the full path to file. Fixed POST
method to allow uploading binary data (previously did not declare
INFILE or INFILESIZE). Adjusted documentation accordingly and added
corresponding test to AttachmentsTest.php.
attach in webroot fix

Fixed issue if attachment is uploaded from the website root folder
Merge pull request #8 from dpawluk/dpawluk_attachmentfix

Dpawluk attachmentfix