Update samples. Fix bugs

Update Life and Trivial Drive samples.
Fix bugs while refactors Life sample.
Refactor code for  in samples.
Add addition checks in Options.Builder and SkuManager.