Merge pull request #156 from ey6es/master

Style fixes to chat code, and moved packet reading to main thread to fix synchronization issues.
Added toggle for nonblocking networking; default to threaded for now, since
we're seeing lower frame rates.