Add the possibility to set the resource priority.

Resource priorities are useful if one wants to be connected from multiple locations.