Update single shot for weighted unwinding.

Also use kernel density estimation instead of histograms.

--CAR, MPS and HP
Modify for PyQLab compatibility.

--BRJ
Make wait time for acquisition configurable.

--BRJ