Add PollerTask

PollarTask is a subclass of PeriodicTask that abstracts out the common
operation of periodically checking something and providing a callback
whenever the value of that something changes.