Factor queue flush.

We need a function that can be used in a number of places.
Set module default config values.
Flush publish buffer on timeout even if the batch is not complete.
Merge branch 'feature/flush-publish-with-timer' into develop
Bump version number.
Merge branch 'release/0.6.0' into develop