Cleaned up certificate handling.
Defined default values for certificates and keystores.
Added support for generating keystores on build if not already existing.
Modified test apps to determine plugin public key filename at build time.