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.
Merge pull request #1575 from diox/stop-storing-urls-in-es

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