Previously, container titles were updated before a transaction
committed, leading to a brief flicker of a window having an updated
(incorrect) title when changing the container tree layout.
This commit moves the formatted_title field into sway_container_state
and title updates are now done in apply_container_state so that
container titles are updated synchronously with other visual changes
during transactions.