Pkg: some very basic testing; must be run explicitly.
Pkg: use triple quotes in more places.
Pkg: make Pkg.add and Pkg.rm more resilient to failures.