Moved resetting preferences to the gem

Also bumped patch version to 0.2.2, added missing file headers and
added (empty) Gemfile.lock file.

Bug: 56088
Change-Id: I7e476c6dbf5d58fa35fc6e043538074ab7720987
Merge "Moved resetting preferences to the gem"