More work on the leg and layout widgets

I added some JSON tests.  Edited the widget build.  Added more to the
leg.