FB 24614: Basic attachments API and push/pull

This PR covers basic CRUD for attachments (API in https://gist.github.com/mikerhodes/8c50371a933f26760612) and push/pull of attachments through inline base64.

Not done in this PR: multipart/related or other performance tricks like fetching attachment separately so they can be fetched unencoded and gzipped if appropriate.