Prevent publishing of publications without attachments

Allows either HTML or normal attachments.
I didn't extended this up to Publicationesque as that doesn't include HTML attachments.

https://www.pivotaltracker.com/story/show/49121005
wip - "Fixed" the broken tests

Factory - include an in-memory html version in published publications to satisfy
new validation requirements.