Support GET /api/whoami

Fixes #51.