Simplify the code for downloading resources.

Use downloadPage instead of our own class.