Adding support for flush points in Razor pages

Fixes #1042
not clear whether this _must_ be called from a layout page.  could it be immediately before the `Sleep()` in the view itself?