work rules table with drag&drop

Hello Rast1234!

This is my little commit. 200 lines, simple refactoring and 20 hours of work o_O"
New widget really look awesome!