Poller: Rewrite it to use go-statemachine

Also add some benchmarks.

Signed-off-by: Ondrej Kupka <ondra.cap@gmail.com>