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

Tested and ready to merge.
we can define this API as 

def histogram(self, buckets, evenBuckets=False):

buckets can be list or int.