Clean up generated JS. Ensure that imports actually happen. Fix bugs with (<~) and (~).
Decide on convention that corresponding Native modules get exported automatically, no need to copy everything through in the Elm file.

Also extend `sort` to work on any comparable values.