Fixing issue with API reconnection

The agent had issues with the token when the API would go down and come back up again
Added a message queue to buffer metrics when the API was down or unreachable
Removed some excess logging of messages in debug

Change-Id: Ib1300bc0c66e00b06302b2b2f875f991520c9f1f