POC/WIP: port to CommonJS

Working proof-of-concept to have a look at.

Sane diff without whitespace changes: https://github.com/flightjs/flight/pull/269/files?w=1
do this in a separate PR so we can apply it now; not related to the commonjs port