CRM-12023 add 4 region tags to summary.tpl

Note that in order to see what I was doing I had to line up all the html tags - so the huge middle commit is simply indentation fixes. I also had to add indentation to the final 'actual' commit to reflect the extra tags but true code change is only 8 lines of code (4 opening tags & 4 closing tags). 

Also note I included some unit tests that I had previously written to check something but hadn't thought worthy of  a PR.