Added a new Repository constructor that forks.

Also refactored the old one so that it does not take the parameters of
the origin and origin_hidden, refactored code to use this new
constructor.