Support for token authentication/authorizatin in the download API (incomplete).