Origins of Intentional and Referential Communication