Add lazy load for flash message

Hello,

Thanks for your flash package, 
I had a requirement of assigning flash message and show it on same request.
So I change to flash message to be lazy load, the flash function will be invoked when user call locals.flash, also add some test cases for that.