This includes story AT5-427 and AT5-428. Implements the new state machine according to ADR8, except abort and reset command.