Added tools.findPosition method.
Added widgets priorities.
Tests: for widgets priority.
Priority docs.
Renamed widgetDef.priority to widgetDef.upcastPriority.
Instead of unclear findPosition introduced simpler and less specialised getIndex method.
Small simplification.
Fixed upcastPriority docs.
Changelog entry.
Merge branch 't/12416' into major