Add `commonjs` option.

This adds a `commonjs` option, which allows exporting compiled templates as a CommonJS module, following the example set by the `amd` option.

What do you guys think?