Utilize poison for json parsing/encoding.
Clean up token manager and token.
Merge pull request #2 from AgilionApps/ap/refactor

Refactored some things.