Cleanup gitignore
Add `broker::write` and implicitly flush after cb

This patch brings the `broker::write` member function back and performs an
implitic flush after each `new_data` callback.