Support for Post, Page, or Document hooks.

@parkr take a look at this, if you please. Here's what I was thinking of in Issue #6.