Implement a facility for changing the underlying repository of a package. Fixes #43.