Added MessageContainerInterface::deleteAllMessages() and moved flush() method