Support Collections (extension of @kansaichris's PR)

Closes #39. Closes #36.

Redirect pages are only written for documents which are outputted/written.