Initial framework for <action> and <reply>, not yet complete