Fix console script with the new structure
Audit name and state attributes when app is updated
Record an event when an app is created.