client: Load and save panel settings

Implement settings load and save and recalculate length when the panel
is assigned to another screen or the geometry has changed.