ENH : bin_edeges helper function

Adds helper function + tests for generating bin edges from
any sub-set of the maximum, minimum, step, and number of bins.
Do you want to do anything with _defaults["bins"] here?  Perhaps if range_min and range_max have values, but nbins and step are None, you can use nbins = _defaults["bins"]?