Backport #70 'no-poll-flashing'

* Don't flash message when custom hooks before/after-poll are defined
* Pass num_total and num_inbox_total to after-pool hook
* Implement HookContext#flash