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
Merge pull request #11 from pkit/auth

added streaming json parser
added metric format name function
Fix bug

Double free if no connection to auth server is present
Make 'ttlInSeconds' field integer
Merge pull request #12 from rampage644/read_cb

Make TTL integer
Fix metric_fromat_generetor
Revert "added streaming json parser"
Merge pull request #13 from rampage644/revert-11-auth

Revert "added streaming json parser"
refactored flush and read