Abstracted away template creation in modules.

Now uses reflection to build a hashmap from the getters in the module.