Extract file downloading in file service, add user downloading rate limit