Added a protocol method to allow overriding of isOutgoingMessage

Adding an optimal delegate method to allow overriding of the default behavior to identify if a message is incoming or outgoing.