support priority queue and api to update job priorities

by default all jobs are with priority 1, can be changed by admin at fly, the jobs with same priority will be sorted by FCFS