added paginate utils, added alt resource constructor for ajax calls, changed ajax_retrieve view, reworked some resource class attributes.'