Support for specifying a custom keystore

Added minimal support for specifying a custom keystore for the https communication.
Can be used with root and intermediate certificates which are not included by default in android.