moved url rewrite and re-init to init callback instead of doSend to allow predictable execution in doSend
moved url rewrite and re-init to init callback instead of doSend to allow predictable execution in doSend

forceedge/advocate-things-js-sdk,nbrl/advocate-things-js-sdk