added streaming json parser
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