Recoded version of the plugin

* widget rules data are stored in the widget settings
* no unnecessary reloads on the widget creation
* no more problems with closing the widget rules form after resaving a widget
* optimized code on the front-end