7.x theme template

Moved processing to preprocess function and display to a template.

My attempt at what was asked in https://github.com/Islandora/islandora_solution_pack_compound/pull/21