Add unit tests for RegisteredKeyVersion and KeyVersionRegistry.

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