https for Android

Port pull request #219 to new repository layout. Fixes #165.

I have tested this on my Nexus 4. I have still to test on my old 2.3 phone but this shouldn't be an issue as the certificate issue was solved the last time round.