add bug_job_map endpoints and model methods

These model methods and endpoints are needed for the ongoing work on the job classification system