[SPARK-1022] Kafka unit test that actually sends and receives data

This was originally done by @jerryshao in the incubator repository. I cherry picked him commits and made a new PR here. However, the tests are flaky so they are ignored for now.