Job detail endpoint

**Not yet ready for merge**

This makes changes to support the auto-update via socket.io of jobs and resultsets.