Added debounce support to the refresh on directive.