Changes to background compilation and moved compile running code within
WebResource classes.