Fix for codeplex-2119 - Performance improvements for razor attribute rendering

Reduces the number of objects created when we're not logging data for
browserlink.

Also some straight-line optimizations for writing attributes.