Get SATB template working

This puts the generic templating framework in place and can now be extended to a Byzantine template