Worked on the a rough implementation of the job control api

It's not worth working too much on code at this point since I need to
make sure the api is ok first, I'm going to write up my proposed api and
post it to the mailing list tommorrow.