Flush messages exposed to locals after the view has the chance to process them.
Merge pull request #1618 from pwmckenna/patch-1

Flush messages exposed to locals *after* the view has the chance to proces...