Change backend to allow more sophisticated queue reordering. Change old ui to work with new backend