Toyota is investing $500 million into Joby Aviation, a California-based startup that wants to make flying taxis.