Changed StreamRecord class to enable batch sending

StreamRecord class has been rewritten in order to enable batch sending. Several APIs are affected. AtomRecord class is added to construct single tuple. Enabling batch sending is the first step towards RDD-like processing as well as window operator.