Bug 13799: Add cookie-based authentication to REST API