Adds Socket::transform and Socket::restore.
Normalizes spacing. Fixes minor bug in queued messages.
Fixes transform test to pass.
Merge pull request #23 from tcr/tcr-transform

Adds Socket::transform and Socket::restore.