Add implementation of isPublishable.

This should fix #37. Perhaps bump version to 1.1.x-dev, as this change also alters the document structure?