Fix #1891 "Incorrect error summary after state deserialization"

- issue
  - `visited` was not serialized/deserialized if there was no other state
  - this caused error summary repeat to be out of sync
- fix
  - serialize/deserialize `visited`
  - instead of 2-step state state restore, pass to onCreate

Conflicts:
	src/main/scala/org/orbeon/oxf/xforms/control/Controls.scala
	src/main/scala/org/orbeon/oxf/xforms/control/XFormsComponentControl.scala
	src/main/scala/org/orbeon/oxf/xforms/control/controls/XFormsVariableControl.scala
Fix #1894 "FB: JS error after state deserialization"

- issues
  - xxf:dynamic was never using the restore state
  - `initialLocal` was not set upon restore
- fix
  - use `setLocal` to set `initialLocal` in all cases
  - xxf:dynamic uses restore state when available
Fix #1895 "FB: Undeclared prefix after state deserialization"

- fix is a workaround
- see #1897 for underlying issue
Fix #1896 "FB: Error with nested sections after state deserialization"

- issue
  - xxf:dynamic does not guarantee stable ids
  - so upon restore, ids might not match those of tree
  - so xf:switch might not restore properly
- attempted fix
  - upon serialization, do full update so that ids are stable
  - upon deserialization, we do a full update anyway
  - however that did not work and I didn't have time investigate fully
- fix
  - pass extra `restoreState` flag
  - do a `setLocal` with default case/repeat if restore state is not found

Conflicts:
	src/main/scala/org/orbeon/oxf/xforms/state/DynamicState.scala
Fix #1877 "SSL: Use default SSLContext if no keystore is provided"