Use simpler RequireJS syntax

This is the alternative RequireJS syntax that lets you use a `require`
function (like CommonJS-style) inside the `define`.

I also removed some unused dependencies from a couple of modules.

Diff with whitespace changes suppressed: https://github.com/flightjs/flight/pull/140/files?w=1