merge lib file into task
rename task
remove `./test/result` dir, make output go to tmp dir.
adds replacements.js, minor refactoring of code