Add read callback

Read callback is used to flush with strict interval.
Fix not allocating yajl handle after flush.
Merge pull request #5 from rampage644/read_cb

Add read callback