Through an equity or debt offering it is filing with the U.S. Securities and Exchange Commission, the car company hopes to build a massive battery factory and develop next year’s Model 3.