Merge "Support to get/set the state of an account via REST"