Add egress-foundation & tests; need to fix jshint issues