Changes to support PageExecutionContext (Browser Link) in Razor

Fixes #1083
lets measure this and see if there is impact (post Beta as a separate issue please)