Give installed pages a site_id

Pages now have a site_id. When using the installer, pages are
created for all sites and all languages.

This commit contains some extract method refactorings because off
the messy Pages Installer.