In order to accommodate the requirements of the work on supporting XMPP authentication on mobile/react-native, make dealing with Dialog a little more generic and a little easier.
Rename setStateProperties and setStateProperty to assign and set, respectively. Inspired by Object.assign, _.assign, and _.set.