Crude gesture --> state change abstraction / mapping.

Better handling of client / server / installation restarts / reconnections.

Other minor.