Add all_post() function

This one kicked my ass! Did some cleanup and commenting while I was at
it.