Add ability to remove the fork relationship from project settings


Replaces !1579.
Fixes#2578.
See merge request !1636