Use blocking socket IO.

We're already on a separate thread, so using non-blocking IO really just
makes things more complicated than they need to be. Honestly, I thought
I did this a while ago.
Merge pull request #33 from Mikewando/master

Use blocking socket IO.