Add 'lookup' message.
Change lookup message to use action and property objects.
Add query action lookup.
Change query to use accessor methods for property references.
Minor query tweaks.