Upgrade server state machine to es6-style.
Upgrade server state machine to es6-style.

See #111.

lankastersky/chicago-brick,lankastersky/chicago-brick,google/chicago-brick,lankastersky/chicago-brick,google/chicago-brick,google/chicago-brick,google/chicago-brick