Merge pull request #3 from rampage644/master

Fixes, auth on first time
Removed unnecessary map entries
Retrieve tenant id from auth as well
Merge pull request #4 from rampage644/auth

Auth
Add read callback

Read callback is used to flush with strict interval.
Fix not allocating yajl handle after flush.
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