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

Tested and ready to merge.
@davies Scala histogram method has two signatures. One of them return a pair of Arrays. The other one returns only the histogram values array. Bringing that to Python would mean that the same function returns different data structure depending on argument. Would that be a good idea?