Lowered the maximum of token and messageId in agent by 1.

Before it was causing the messageId to become bigger than 2 bytes.