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