Merge changes from topic "rotation_config_update_fixes" into pi-dev

* changes:
  Force-update the orientation of before sending to client
  Update visibility and config at the same time
  Don't update configuration for invisible windows
  Don't let top activity to influence the orientation