Categorical sampling and smoothed histograms.

Added ``common.random.categorical`` to sample categorical random
variables and ``common.stats.histogram_interp`` to generate splined
histograms and ``common.stats.hist_interp`` to plot splined histograms.