move version and package name constants to GpgApplication (issue #1250)
prevent NullPointerExceptions while saving state in MainActivity
if install is needed, insert it before MainActivity shows its content (fixes #1443)

MainActivity is currently gets LAUNCHER intents, so its the first to start,
except for the BroadcastReceiver and perhaps the file associations. The
installation of the gnupg guts needs to happen before anything else,
whether this is a new install or an upgrade. So before MainActivity checks
whether to run the wizard or sets up its layout, it checks whether install
needs to be run, then runs it.
move pidof() and kill9() from NativeHelper to Posix

pidof() and kill9() emulate Posix shell commands, so this seems like a
natural home for them.
remove unneeded, unused XML layout file left over from APG import
standardize the naming of the layout XML files

They are named after the classes that match them, except instead of
CamelCase, they are words separated by _ spaces.
remove unused class: StreamDisplay
standardize class names, always include 'Activity' if a subclass, etc.
move Intent request codes to GpgApplication (issue #1250)
move all Activity subclasses into a single java package
move chmod methods from NativeHelper to Posix
remove dead methods from NativeHelper
when upgrading app_opt, delete the old existing directory first
remove bin/pinentry symlink, its unused and makes a full copy get included
when key generation fails, quit and log stacktrace (issue #1460)

This should be handled much better than this, but this works for now.
create common .conf file for env vars needed by native processes, fixes #1466

pinentry and the app_opt/aliases need to have a few env vars set in order
for them to find the libraries correctly.  this writes out a common file
that both source and read to get the env vars they need.