Susburrows/add region support amwg set3

This adds support for region arguments in plot set 3.  (I have tested it and it works).  It also adds a "region" attribute to the "reduced variales" in plots sets 3 and 5, which I thought might be useful at some point.

This branch includes all the changes in the refactoring branch I have just submitted.