factor together calls to set title
factor out more title handling
make var names consistent with rest of file
factor out more title handling
factor out common template handling
factor out more title handling
allow pages with no subtitle
Merge pull request #479 from PyBossa/factor-titles

Factor title handling together