Remove $Id tags

Also adds binary coding magic comment to a few files
Restore tcp.rb to its current state
Restore generic.rb to the correct state
Landing #1853 - Remove ID tags