nbsample: interactive sampling in the widget

Uses IPython notebook's widget framework to display a simple, updating progressbar and a button to stop the sampling.

See Issue #605