[SPARK-1170] Add histogram method to Python's RDD API

Tested and ready to merge.
So this generates ranges in two digits of precision in case of floating point. I feel we should make it at least three.