Some docstrings.
post-cats doesn't sort its result, relying on ordering of input.

Tests are fixed too.
Refactor out HTML regeneration code to separate function.

regen-posts-with-deps