Added smoothed KL divergence support.
Fixed bugs in Shannon entropy, KL divergence and HT circuit.

A bug in tomography.HTCircuitModel meant that models were always
considered valid, causing resampling to occasionally produce
invalid models for that example. This in turn caused
negativity in the weights after updating.