Clean up the /api/evaluate controller considerably.