/trunk
Factor out the template side of the result/warning/error messages into a separate include file. Probably should have been done and committed with the rest of r376.