Template handler: Avoid storing data locally.
Module base class: Rewrote loadTemplate to be simpler.