Facebook had to design new systems for WhatsApp to enable a standalone multi-device experience while preserving privacy and end-to-end encryption.