WIP: Rewrite to use go-statemachine

Signed-off-by: Ondrej Kupka <ondra.cap@gmail.com>
Poller: Rewrite it to use go-statemachine

Also add some benchmarks.

Signed-off-by: Ondrej Kupka <ondra.cap@gmail.com>
Travis CI: Drop Go 1.0 support

Signed-off-by: Ondrej Kupka <ondra.cap@gmail.com>
Merge pull request #3 from tchap/use-statemachine

Rewrite the thing to use go-statemachine