Add unit tests for RegisteredKeyVersion.

### Also includes:
* Updates to the InstalledDriver unit test (to sync with this one).
* A MockKeyVersion and associated proto for testing.
* JavaDoc comments requested by John.
* Minor tweaks and bug fixes.