Changed deprecated AASM methods: 'aasm_state' to 'aasm.state', 'aasm_initial_state' to 'aasm.initial_state' and 'aasm_event' to 'aasm.event'. into CircuitState.