Timeout as utils

Addresses #31 

Added wrapper around timeout IO Loop as discussed.

Made PEP8 fixes to the file.

Tested by integrating with collabedit. Works.
I'm with Jesse on this one, don't think we need this check here