Added option for CommonJS module compilation

Can be used just like `module`:

```javascript
templates = compileTemplates('app/templates', {
    commonjs: true
});
```