Add missing requires

MSP-9228
Fix typos

MSP-9228
Fix handler aliasing in templates

MSP-9228
Use Template.write! so specs fail fast

MSP-9228
Check that templates can be loaded in specs

MSP-9228