SPARK-1730. Callbacks when blocks are generated for data from streaming receivers

Made the callbacks cleaner by not taking any args. Cleaned up some code.