API: Added user_agent to logs, Option for admin to download logs