[CDAP-505] Added ability to infer IdentityStreamEventDecoder in StreamIn...

Added ability to infer IdentityStreamEventDecoder in StreamputFormat. Updated SparkPageRankProgram to use IdentityStreamEventDecoder.
Have added a separate test for decoding StreamEvent, refactored some common test code into a common method.