BlackBerry signed a deal with Ford to create software that could run the first generation of fully automated self-driving vehicles.