Add initial jig DB framework and the initial implementation. Dismantle earlier simple mechanism. More unit test work and add commons-io, since we're going to need a lot of IO stuff.