refactor randomPartitionsSpec to hashedPartitionsSpec

refactor to a more appropriate name
improvements

1) Number of reducers use 1 only when intervals are to be determined
2) Read only useful bytes from BytesWritable
Merge pull request #406 from metamx/refactor-partitionsSpec

hashed partitions improvements