Migrate template selection in menu, siteMap and thread blocks.
Use template parameters to reduce the number of menu templates.
If the execute method returns null, do not apply the fullyQualifiedTemplateName (returning null means to render an empty block).
Minor fixes and clean up.