FIX floating issues.

Decided to use Rational instead of Float for probabilities.
The tests pass, but upcoming tests will build confidence
  if this is consistent and complete.
Add Factors for priors in a graph.

Using Factors so that queries can work with complex dependent
  factors and simple independent factors in the same way.