Add pbs_alterjob/pbs_manager/pbs_rescquery/pbs_selstat

Added the above functions plus (selected) tests.