Add formatter support to legends, allowing arbitrary customization.  Added tests with examples of square icons in legend, as well as a full legend test suite.  Also made navigation in tests consistent.