Removing junk, adding Referer header
Restructuring resources