Add Repository#add.

By @porras, @ymendel and @calavera
Remove symlinks from path without using File#realdirpath

That method is not present in Ruby 1.8
Require pathname library in the test that uses it