Revert "Assert the revision doesn't change in archive file"

This reverts commit 682d78a39c49709698bbbf3d7ed527b2e2068445.
Remove revision()

Remove revision() from UrlGenerate. It shouldn't be needed. We should
only be toggling it when we are working with an archived version. In
which case we can set the revision using the FileInterface methods.

I also switched to using the built-in http_build_query to build the
query parameters.

/cc @nmonterroso