Use FileReader to base64 encode attachments

 * Implements #82