updating the page generator and base view to work with razor helper functions

@NTaylorMullen 
Not sure if the Diagnostics team is embracing C# 6 features yet but if so this can be: `public Action<TextWriter> WriteAction { get; }` and you can then remove the `_action` field entirely.  The ctor would just become:
```C#
public HelperResult(Action<TextWriter> action)
{
    WriteAction = action;
}
```