Adding support for flush points in Razor pages

Fixes #1042