Detroit's smallest carmaker managed to cut its losses in half during the most recent quarter and says it now expects to turn a profit for the year.