Work for COMETD-489 (Support client-side message acknowledgment) on the JavaScript side.
Merged branch 'origin/2.7.x' into 'master'.