WIP: implement e2e test harness

This is a work in progress, still trying to make the server do everything it should do.