Rewrite parts of language API to support sending keys in sendMessage and broadcastMessage, add support for newlines in messages