The first round of US-Iran talks has ended with both sides agreeing on a roadmap towards a final deal.