Rewrite get_file_at_url using urlopen to define user-agent

Took this chance to add some documentation