Implemented Session.is_in_task property.

Property is updated by the Interaction context manager.

Property will be used to bundle messaging for mapped commands. (That is,
knowing when we're in a task is useful for knowing whether to collect messages
for a mapped command.)