Refactor code related to default home pages

There now exists an extension point for modules like homepagefordomain
 and translatable, rather than relying on hacks in core.