Kafka fixes and DStream.count fix for branch 0.7

This pull request gets all the commits submitted by Sean Mc Namara on the streaming branch to branch-0.7.