Revise with less memory overhead and privatization.
Initial implementation of socket library.
Remove gratuitously complicated in-frame type coding.
Update documentation a little.