Add generated scripts to .gitignore
Lots of clean up

More-or-less working example
Better factoring.  Federation works.