[WIP] Card 133 - Maintain application state across snapshot/restore

See there gists for details:

Scenario when the application is running and user do snapshot/restore:
https://gist.github.com/mfojtik/9491948

Scenario when the application is stopped and user do a snapshot/restore
https://gist.github.com/mfojtik/9492392