Explicitly bind any functions passed to the template engine to the controller
Fixes broken error handling
Merge pull request #69 from robertklep/master

Explicit binding of functions/methods passed to template engine