Added outbound messaging processing to the template, tests, updated documentation