Cox Automotive to buy Xtime for $325M, enters service software business