Add support for checking the installed version of a package prior to downloading it.  Also, finish removing the fix applied in check-in [345ffb1dd5] (i.e. removal of the 'm' query parameter).