Reorganisation template preprocess functions

I have moved most of the contents of template preprocess to relevant
.inc files