[added] module output with {module:true} option

- can now output templates as js modules
- added test coverage, run with `npm test`
Merge pull request #2 from rpflorence/modules

[added] module output with {module:true} option