Remove unused imports
Cut an unused name
Pass cur_time to where it's used
Use encoded content_prefix in binary message
Fix reference to GTSocket
Merge pull request #1 from takluyver/tkfix

Fix a missing name and some unused imports