first commit
Split copyright statements.
Make docs more presentable.

Mostly whitespace fixes and removing unicode.
module_info() should return, not print.
Whitespcae cleanups.
Remove unused function.
Use our hexdump from c2utils.
You can unpack more than one thing at once.
More cleanups.

Remove dead code.

Cleanup logic in some functions instead of them being if/else. Just return
in the short if case.

The decompress() function is no longer. It was just a wrapper around
lznt1.dCompressBuf() with a bunch of dead code inside it. I killed the
decompress() function and made all calls to it just use
lznt1.dCompressBuf().
Remove unneeded prints in init().
Remove more unneeded prints.

While here, whitespace.
Unpack more than one thing at once here.

While here, make the printing more easy to read. And convert unknown
TCP socket status to hex.
Remove audio bits from stream_data.

These were never used, just set.

Also, because I'm crazy like that more whitespace.
Don't keep resetting module_options.
More whitespace.
Make things a bit easier to read.

In this case I'm finding it easier to read if tcp.stream_data is
replaced with sd and module_data (which really should be tcp.module_data)
is replaced with md.
Make hexdumps start on their own line.

This is much easier to read output now.
More whitespace.
More whitespace.
More cleanups.

Rearrange imports.

Cleanup struct parsing to be easier to read. The stuff in portlist() needs
testing. I know it didn't work before because it was doing this:

(pid, proclen) = unpack("<IB",data[:5])[0]

which is not valid syntax.

Also fix a bug if we can not find dirstart to politely say so and carry on.

Fix the struct parsing in getHeaders() to be easier on the eyes. Instead of
parsing values out of order and one at a time, parse them in order and at
once.