The US and Iran are down to the wire in negotiations as the critical deadline for a preliminary deal is just hours away.