Add flush timer
Merge pull request #178 from segmentio/add/timer

Flush queue on scheduled timer