minor bugfixes when rendering the charts.
Added the rule entity and made some fields deprecated on the label.
Added the rules and edit rules pages. Adding rules now also work :)