Moved a bunch of things into the state class and wrote code to migrate configs over.
Added events list to the GUI.
Added trigger lists to the event objects.
Mostly finished implementing event/trigger system.

Added important stuff like making triggers actually work.
Only allow adding supported components to automations.