bug 982552 - use DEBUG variable to enable logging in debug build; r=mfinkle
bug 982182 - fix regressions that hang checking for updates for webapps; r=mfinkle