fix(upgrades): now stores ElggUpgrade by paths instead of full URLs

Storing upgrade objects by complete URLs can be problematic if the site
URL changes.

Fixes #6838