Remove format from object state

- "format" does not need to be in the Deploy state.
Remove appConfig from class state

- Moved it into $opts object.
Move $console state setting to resetStateForExecution()
Merge branch 'hotfix/state'

Remove most state from Deploy class, in order to simplify testing.