Apps track driving habits to encourage safety through discounts