android: send debug messages to logcat

printf'ing interferes with the gpg-agent<->pinentry communication
a little bit of code barf

this does all kinds of stuff. we're no longer acting as a client, instead
we start a server and wait for the activity to connect back to us. then we
send our STDIN and STDOUT fds, then we chill.