Modified function 'add-resource' and added test for it.
Implement the 'write-repo' function and write a (pseudo) test for it.
Added function 'index' that creates a new Repository from all bundles in a
given directory.
Added 'update-repo' function.
Minor cleanup.