Basic plumbing - mainline and test setup

Skeleton code to flesh out basic structure with a simple testcase to
ensure things connect properly.

No actual functionality yet.