update REST Helper to include user-agent header and only authenticate once