Allow direct module export via legacyExport flag

Allows for support of writing code in ES6 but outputting in formats expected by existing codebases.

- Implements the flagged behavior discussed in #34.
- Additionally fixes naming mismatch for default var name