unpack_url: session only needed for unpack_http_url
vcs: add documentation to VersionControl class
cleanup: use "with open()" to open files
freeze: simplify code and use with open()