Stop storing URLs of icons/previews in ES, generate them at runtime (bug 952153)

Should be backwards-compatible with existing data in ES and allow us to
change the CDN url at runtime.