mocha.opts: Enable --check-leaks.
Update mocha to 1.19.0.
Added replaceSymbolsInJavaScript transform (adopted from assetgraph-builder).