Partially implemented <bg> and listjobs.

Missing: removing expired jobs / showing job status.