Reorder SpecialRecentChanges::webOutput

Reordered the function to separate the data building logic and actual
outputting.

I'd love to actually split them in two functions, but the two parts
are still slightly interdependent and passing everything as arguments
would be awkward.

Change-Id: If770640d5b79e8771470bb7b6d1fcc16060f06b0
Merge "Reorder SpecialRecentChanges::webOutput"