Progress on handling permission requests.

Issue #71
Also increases timeout length because of erroneous disconnects.