Cache the "otherProjectsLinks" setting

This will make sure we don't always load all sites just to
compute that setting. This is for example relevant for pages
that are linked to an item, but don't have any links to other
projects.

Also it will make sure we don't loop over all 800+ sites
several times this often (in a test computing this list of
site ids took about 4ms with Zend on tin and 2ms with hhvm
on osmium, excluding time to fetch and unserialize the sitelist).

Change-Id: Icfe95f9b0b3ad3a53c9f973657dcb133c88286a6
Merge "Cache the "otherProjectsLinks" setting"