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

Add support also for 'cache', 'require', 'report', 'main'.