[priorities] Implement priority handling idea from https://groups.google.com/d/msg/openwferu-users/xSDFdqp4wws/UgzPPpGfNjgJ