add fg_run (imcomplete)

fg_run runs suspended process groups, which is not correct
Created pg_wait()

Shell changes foreground process groups.
Cleanup

Add list operations to int_list.c
Call list functions in job.c
Add global variable bgpg

fg_run works correctly