Store CWM Recovery Version and Device

Patchset 1) Initial commit
Patchset 2) moved fclose()
Patchset 3) move to one file
Patchset 4) removed unneeded variable
Patchset 5) fixed version
Patchset 6) rebase

Change-Id: I2f958f6085d6a8fac303b9b013e2be955fb42780