Convert flash token to object

Some template engines, like Xslate, won't evaluate code references
automatically.  This patch converts the flash token into a simple
object with a destructive accessor.  Additional helper methods are
available (albeit not documented), to allow inspecting particular
messages without destroying the flash message.