Added some features for producer class

-Add support for a random and a keyed partitioner

-Fix support for Producer requireAcks