Add get state from server, and add initial atom put to server in setup if device is a controller.