Error messages: delayed rendering with templating

From this line up could really be broken out into it's own method to build the proper context and combine it with defaults and what not. Anything actually having to do with rendering doesn't start until below here.