Poller service for AngularJS applications