COMETD-561 - dojox/cometd.js uses deprecated API.

Updated the implementation to use dojo/request/script, and enlarged
the maximum callback length accordingly.