Support gluejs v2 and add support for 'transform', 'command' and 'replace'.

Add support also for 'cache', 'require', 'report', 'main'.
Update AUTHORS and README.md
Fix custom 'basepath' handling.
Add automatic `main` option setting when possible.

The `main` option is automatically set only when there is no ambiguity: when there is only one source file.
Update tests.
Update .gitignore
Merge pull request #3 from panta/master

Support gluejs v2 (and transform)