Fix autoupdate in cases where Autoupdate.autoupdateVersion is set.

If Autoupdate.autoupdateVersion is set outside of the Autoupdate
package, we wouldn't notify the client of the new version. This
patch simplifies the updating logic by only having one document
per version type.