Made client<->server connectivity working again, refactored a lot of the action state code and stage initialization code.