First atempt at conditional CRF learning.

Note: this needs a lot more testing, the code that computes the edgebels
in conditional settting is still prob wrong