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.