Various improvements.

Cache fetched pages.  Simplify code.  Print out page counts alongside
topic IDs.