Improve speed in GPIO

Have tested with simple setup. There is a few hundred ms delay between swiping
and having the electric signal sent, but this seems largely to be due to network
latency, judging from log output on receiving a response. In general it is pretty
satisfactory.