[Node-port] Organize tweet and write data

Moved from GitHub flock/10

Posted by hackintoshrao:

  • As part of the porting we need functions to organize the tweets obtained from the Twitter API and create a JS object to create Nodes and Edges.