Bug 940541 Convert shader editor to use Promise.jsm. r=vp, r=benvie