Comment out verbose debugging comments
Add table "auth_user_requests" to log all user requests, table "auth_user_request_daily_counts" to log daily request statistics (which can be later converted to weekly statistics), and a database trigger that would log each request to the aggregated "daily counts" table
Add "MediaWords::ActionRole::Logged" action role which will log enabled actions to the "auth_user_requests" table
Use the logging action role in API controller actions, "/search" and "/search/wc"; in "/search", set the "requested" items (stories) to the number of returned stories if "csv=1"