Make IndexTheme a little easier to customise

A site wants to replace the default "no images found" with a more useful, site-specific "how we tag things so you can search for them" guide; but currently this function is pretty huge and does many things. Breaking it down makes it better.