The pragmatic foundations of communication: an action-oriented model of the origin of language