persist window state and geometry

See #5
persist table header state. closes #5