Add access control and messaging mode mechanisms.

Allows an endpoint more decision over what it allows to be sent
to peers and what it advertises it can receive.