Initial commit of real code.  Already useful.

Next tast: upload wrapping.