Refactor the compiler options.

Define default options in class constructors.
Export ToAmdCompiler and ToCommonJSCompiler with corresponding defaults.
Remove options unique to api (not on command line).
Add option moduleName (default true) to support commonjs w/o __moduleName.
Option moduleName takes string, empty string for no __moduleName, or '+' for
  resolve filename.
wrong indentation