[SPARK-1981] Add AWS Kinesis streaming support

This is a nit pick. But such utils function can often be added in the companion object of the same class. So this could have been added to `object KinesisRecordProcessor`