Merge pull request #1027 from tushargosavi/hds

Hds - WAL changes
Rearange code
Merge branch 'hds' of github.com:DataTorrent/Malhar into hds
Make a copy of committed window id and offset in endWindow, and write it to WAL
metadata at end of write.