Under Elon Musk, Twitter may be reviving a project that would bring end-to-end encryption to its Direct Messaging system.