Initial commit for big rewrite. Everything now starts writing to an automation_context, allowing for more flexibility in values etc. for rules
Bring back graphite
Also report rule state. And run regular rule check schedule