Clear the log, clarify a ternary, start API auth

So, the log is now empty.

AuthLib has a new function to do authentication for the API
endpoints. It's not functional yet, it just redirects to
403 for testing purposes. Eventually it'll check a header.

I also cleaned up a ternary in the API route and added a
log statement.