Polling: Define poll-time as a param instead of a static variable.

@oskarwiksten, care to take a look?