Support for templates in moduleRendrer

The rendrer can now render templates to simplify the creation of simple modules
tightly coupled to the controllers.

There is also a bugfix for the bug discovered by @peterhgombos :smiley: