Major restructuring. Frame is now built as library and linked to
FrameTest