Adding outbox cleanup support for the inmemory persister

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