Require authentication for most API calls.
Improve error handling.