factor out android dependencies from PgpKeyOperation, and add JUnit/Robolectric testing stubs

PgpKeyOperations should work with no org.android.* code. Introduced PgpGeneralMsgIdException to move localization logic into the calling intent handler.