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()
Merge pull request #2034 from xavfernandez/xfernandez/small_improvments

Small improvements