Implemented support for adding attachments to an AttachmentCollection via streams

Also added support for adding them via byte arrays for PCL projects.