Support for specifying a custom keystore

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