archive: use util.opener when archiving files.
This simplifies the code a bit and makes it easier to support symlinks.
To run the tests, do:cd tests/python run-tests.pySee http://www.selenic.com/mercurial/wiki/index.cgi/WritingTests formore information on writing tests.