AngularJS module to make remote sort and paging