Add View Variables plugin

Replaces #247