Move store and records declarations

I moved store and records declarations as otherwise things get out of sync when you call LocalStorage.clear().
Added a simple patch implementation.

Added a simple patch implementation.
Merge pull request #2 from ConneXNL/master

Move store and records declarations