#6386 Add Priority system for validators

This PR is for #6386

I made lot of shit on previous branch...
I have deleted it and have just recreated it...