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.