Elements of a Plan-Based Theory of Speech Acts