Simulate negotiated features.  Fix shutdown.

This change has several extraneous changes to reduce tracing
noise, that need to be rebased out.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>