Track count of active jobs

Used to know when it's safe to shut down the server.

Future work could involve handling SIGTERM by waiting to shut down until this count
reached 0.

Branched off of #45