Angular Service for regular polling or periodic calling of a function