Added basic state preservation
Added state preservation for table views
Merge pull request #1 from Heroico/state

State branch: added state store/preservation