Implemented basic infinite scroll directive.