give IndexTheme:display_page some sub-functions to make them easier to customise
Merge pull request #448 from shish/theme_breakdown

Make IndexTheme a little easier to customise