Refactor fixLieutenant()

Split three blocks out into separate methods.
Replace FactionLtRefs with more general CategoryRefs
Refactor fixLtItems()

This should make it easier to look in more places for items that
affect the Lt.
Check more categories in fixLtItems()

Now also checks Category:Lieutenants and
Category:<rarity> Lieutenants.
Now we don't miss any items, but we do end up with too many items
in the list. Need to add some smart filtering to remove
irrelevant items.
Xref: in fixTechLab(), drop out if recipe not on Tech Lab

Need to check Tech Lab - Historic.
Xref: Support more than 6 ingredients for Tech Lab recipes

Replace two hard-coded range() calls with infinite loops and
breaks when we run out of ingredients.
Xref: Fix Lt items list
find_item_powers: Utility script
utils: In ImageMap, find more images

Allow for the odd page that has a direct [[File:]] link rather than
using a template.