Some modifications to restore functionality with promises.
Remove Yeoman boilerplate code.
Better structure but with a multi-search bug.
Correct error where replace argument received status code.