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
oh yeah, good spot