Test cases, brah

This branch adds a bunch of tests for the expectd functionality of Flowhub.

It also rearranges a bunch of shit in engine and configurator, and probably touches
some things in core as well. Fun!

Testing is grand.