Fix issues with embedded attachments

Fixes #71 by checking that the post supports attachment data before adding it. Also ensures we don't embed entities too far on `/media`.