[TASK] Cleanup sysext "tstemplate" and module functions

Change-Id: Icd9ad7fadbd6910eba87a77908e15568be800dc2
Resolves: #46144
Releases: 6.1
Reviewed-on: https://review.typo3.org/18821
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[TASK] Cleanup sysext "wizard_crpages" and "wizard_sortpages"

This is a non-functional change that reformats the code, removes
unnecessary empty lines and fixes reference to old classnames.

Furthermore change "0" to FALSE where a boolean is needed.

Change-Id: Ida0c80ce0c54c6054e248b29c716b740f5e65194
Resolves: #46143
Releases: 6.1
Reviewed-on: https://review.typo3.org/18820
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn