Refactoring dai_util code so that DaiFactorGraph class can be instanced (with completed factor tables), but not yet initialize the dai SWIG components. This way it can be serialized and replicated easily.