Adding outbox cleanup support for the inmemory persister

WIP

@johnsimons thoughts?

I'm not sure about if the default should be in the core?