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"